Dec 9, 2012

openSUSE Forums: How do I set correct permissions permanently for my 2nd internal HDD?

openSUSE Forums
openSUSE Forums
How do I set correct permissions permanently for my 2nd internal HDD?
Dec 9th 2012, 23:13

Firstly, please can my last thread be deleted.

Apologies for the double post, and being in the wrong section.

Ill try to be clear in what Im asking this time, as I seemed to confuse some people last time, and it didn't help anyone.


I have aslo tried to pm hcvv as my other thread got locked, So I could not reply to anyone after regarding the advice I was given, but I cannot see my message in my sent items, so think it failed to send.


Here is an image of my HDD partitions

http://img28.imageshack.us/img28/6484/partitionsv.png

The HDD mounted at media/Media is the drive I have problems with.

I changed it from ntfs to ext4 today, to explain further on this I simply backed up any data that wasn't already on my lidevrive account to another HDD, formatted to ext4, and remounted at media/Media, This is not relevant to my question, it was successful, but I'm just explaining why I am at this point when I wasn't yesterday.

here is the fstab,

Code:

rob@linux-mzrw:~> cat /etc/fstab
/dev/disk/by-id/ata-ST3400620AS_5QG03ZZD-part1 swap                swap      defaults              0 0
/dev/disk/by-id/ata-ST3400620AS_5QG03ZZD-part5 /                    ext4      acl,user_xattr        1 1
/dev/disk/by-id/ata-ST3400620AS_5QG03ZZD-part6 /home                ext4      acl,user_xattr        1 2
/dev/sdb5                                      /media/Media        ext4      user,acl,user_xattr  1 2
/dev/sdc1                                      /media/Stuff        ext4      user,acl,user_xattr  1 2
proc                /proc                proc      defaults              0 0
sysfs                /sys                sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0

My only issue is permissions, all drives are mounting at boot up, all drive permissions seem correct, apart from the one highlighted in red.

This drive will not allow me to copy, write files, even play music unless i browse in Dolphin with super user, or log in as root.

From my last thread I have learned the following, please could somebody confirm them for me.


It is best to mount drives by-id, I will use this command to see how they should be listed
Code:

ls -l /dev/disk/by-id




I should NEVER create mount points in /media, but instead use /mnt. So I will edit that in fstab, and remount the drives at those location (/Media and /Stuff) using the partition tool (Im sure there is a command to do it, I'm used to windows and GUI)

I would like to chown and chmod the parent directories, /mnt/Media and /mnt/Stuff, That way I have permissions to write to both of those drives, I dont have multiple users, or any groups set up, just my log in.

IS this easiest done with commands, if so I would probably need some help, although I'm sure the info is out there, and Im happy to look for it, if I know its the right way to do it.

Or should I be using what looks to be a great script by jdmcdaniel3 S.A.F.P. - SUSE Automated File Permissions - Version 1.0.4: https://forums.opensuse.org/blogs/jd...ion-1-0-4-113/.


Again, apologies for the confusion last time, I hope this thread is better for everyone.

Thanks

Rob



You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

No comments: