[opensuse] Permissions question...
Hi all! When I do "mount" I get this back. /dev/sda6 on / type ext4 (rw,acl,user_xattr) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) debugfs on /sys/kernel/debug type debugfs (rw) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) /dev/sda7 on /home type ext4 (rw,acl,user_xattr) /dev/sda1 on /windows/C type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096) /dev/sda2 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096) /dev/sda4 on /windows/E type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096) /dev/sdb1 on /Storage type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096) fusectl on /sys/fs/fuse/connections type fusectl (rw) securityfs on /sys/kernel/security type securityfs (rw) ############################### Right now my "/dev/sdb1" is mounded as /Storage and only root can use it. I want to change it from (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096) to (rw,acl,user_xattr) like I have my /home dir. So that anyone can read/write on it. Could someone give me an idea on changing this? Thanks! JIM -- The US was colonized by the religious, political, economic, and criminal rejects of every country in the world. We have been carefully breeding insane, obsessive, fanatic lunatics with each other for over 400 years, resulting in the glorious strain of humanity known as "Americans". You have to expect some... peculiarities. -Mark Damon Hughes -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 18 May 2011 19:42:30 James Hatridge wrote:
Hi all!
When I do "mount" I get this back.
/dev/sda6 on / type ext4 (rw,acl,user_xattr) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) debugfs on /sys/kernel/debug type debugfs (rw) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) /dev/sda7 on /home type ext4 (rw,acl,user_xattr) /dev/sda1 on /windows/C type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,b lksize=4096) /dev/sda2 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,b lksize=4096) /dev/sda4 on /windows/E type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,b lksize=4096) /dev/sdb1 on /Storage type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,b lksize=4096) fusectl on /sys/fs/fuse/connections type fusectl (rw) securityfs on /sys/kernel/security type securityfs (rw)
###############################
Right now my "/dev/sdb1" is mounded as /Storage and only root can use it. I want to change it from (rw,noexec,nosuid,nodev,allow_other,default_permissions,b lksize=4096)
I have a similar disk at /home/bob/Storage /dev/sdb1 on /home/bob/storage type reiserfs (rw,noexec,nosuid,nodev,acl) And permissions are drwxr-xr-x 15 bob users hope this helps -- Bob Rea mailto:gapetard@stsams.org http://www.petard.us http://www.petard.us/blog http://www.petard.us/gallery Where is Bill Stringfellow now that we really need him? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-05-19 01:42, James Hatridge wrote:
like I have my /home dir. So that anyone can read/write on it. Could someone give me an idea on changing this?
Look up the file /etc/fstab. There will be a line about sdb1. Post it here. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk3UbEoACgkQtTMYHG2NR9WqWgCfQHeuGrLQfIQ09dk+drs8ccHi q08An0sGXAmQmbKJX4qfCd9o9+z+phDx =3X/x -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2011-05-19 01:42, James Hatridge wrote:
like I have my /home dir. So that anyone can read/write on it. Could someone give me an idea on changing this?
Look up the file /etc/fstab. There will be a line about sdb1. Post it here.
Here is my fstab file. I could edit this right? ######### /dev/disk/by-id/ata-ST3750528AS_9VP4QKMQ-part5 swap swap defaults 0 0 /dev/disk/by-id/ata-ST3750528AS_9VP4QKMQ-part6 / ext4 acl,user_xattr 1 1 /dev/disk/by-id/ata-ST3750528AS_9VP4QKMQ-part7 /home ext4 acl,user_xattr 1 2 /dev/disk/by-id/ata-ST3750528AS_9VP4QKMQ-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST3750528AS_9VP4QKMQ-part2 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST3750528AS_9VP4QKMQ-part4 /windows/E ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 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 /dev/disk/by-id/ata-SAMSUNG_HD103SI_S1Y5J9CZ807169-part1 /Storage ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 -- The US was colonized by the religious, political, economic, and criminal rejects of every country in the world. We have been carefully breeding insane, obsessive, fanatic lunatics with each other for over 400 years, resulting in the glorious strain of humanity known as "Americans". You have to expect some... peculiarities. -Mark Damon Hughes -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2011-05-19 at 06:44 +0200, James Hatridge wrote:
Look up the file /etc/fstab. There will be a line about sdb1. Post it here.
Here is my fstab file. I could edit this right?
#########
/dev/disk/by-id/ata-ST3750528AS_9VP4QKMQ-part5 swap swap defaults 0 0 /dev/disk/by-id/ata-ST3750528AS_9VP4QKMQ-part6 / ext4 acl,user_xattr 1 1 /dev/disk/by-id/ata-ST3750528AS_9VP4QKMQ-part7 /home ext4 acl,user_xattr 1 2 /dev/disk/by-id/ata-ST3750528AS_9VP4QKMQ-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST3750528AS_9VP4QKMQ-part2 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST3750528AS_9VP4QKMQ-part4 /windows/E ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 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 /dev/disk/by-id/ata-SAMSUNG_HD103SI_S1Y5J9CZ807169-part1 /Storage ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
It is the last line. You see the gid=users? You can, for example, add a "uid=yourusername" so that files belong to you instead of to root, so that you can write - but no other can. Or, you can change the masks. I like "fmask=0117,dmask=0007". Try till you get what you like. # fmask=0113,dmask=0022 generates these permissions # -rw-rw-r-- files # drwxr-xr-x directories/ # # fmask=0117,dmask=0027 # -rw-rw---- files # drwxr-x--- directories/ # Octal permissions (man chmod): # UserID * 4 + GroupID * 2 + sticky * 1 # Read * 4 + Write * 2 + Execute * 1 ( owner ) # Read * 4 + Write * 2 + Execute * 1 ( group ) # Read * 4 + Write * 2 + Execute * 1 ( rest ) - -- Cheers, Carlos E. R. (from 11.2 x86_64 "Emerald" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iEYEARECAAYFAk3U3mAACgkQtTMYHG2NR9XnpQCgkB2WaR4MVcGvDyFUCDnu7XPv 8ZAAn17Xj7j1puYD8QiXpK3dh0zyxROD =a+Cv -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 19 May 2011 01:42:30 +0200, James Hatridge <James.Hatridge@gmx.de> wrote:
###############################
Right now my "/dev/sdb1" is mounded as /Storage and only root can use it. I want to change it from (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
to (rw,acl,user_xattr) like I have my /home dir.
See 'man mount' for the options available for ntfs file systems. AFAIR acl and user_xattr aren't supported. You need the uid= and gid= options to specify the user and group that own everything on that fs so that not only root can use it. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Bob Rea
-
Carlos E. R.
-
James Hatridge
-
Philipp Thomas