[arch-general] [Device Auto-mounting] HAL, KDE4.4 and tight default permissions
Hello, I have a small problem with default permissions of Automounted Removable Devices. Whenever I mount it via KDE4.4's Auto-mounter. it sets all files to be owned by root. $ ls -la /media/Backup/ total 24 drwxr-xr-x 3 root root 4096 Feb 10 16:07 . drwxr-xr-x 6 root root 4096 Feb 10 17:30 .. drwx------ 2 root root 16384 Feb 10 16:07 lost+found I know KDE does not mount anything, it asks HAL. nothing is in /etc/fstab but in /etc/mtab and in /proc/mount I got $ cat /etc/mtab /dev/sdb1 /media/Backup ext4 rw,nosuid,nodev,uhelper=hal 0 0 $ cat /etc/proc /dev/sdb1 /media/Backup ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered 0 0 This means I can't write/modify anything as a normal user. mounting manually every-time I need to transfer few files is annoying.HAL mounts drives by default only for root user. [1] hal 0.5.14-1 [2] qt 4.6.1-1 [3] kernel26 2.6.32.8-1 I was wondering how to change this behavior and so by default normal users could read-write into auto-mounted partitions. Regards, Gaurish Sharma www.gaurishsharma.com
On 10-02-10 13:10, Gaurish Sharma wrote:
Hello, I have a small problem with default permissions of Automounted Removable Devices. Whenever I mount it via KDE4.4's Auto-mounter. it sets all files to be owned by root.
$ ls -la /media/Backup/ total 24 drwxr-xr-x 3 root root 4096 Feb 10 16:07 . drwxr-xr-x 6 root root 4096 Feb 10 17:30 .. drwx------ 2 root root 16384 Feb 10 16:07 lost+found [...] $ cat /etc/mtab /dev/sdb1 /media/Backup ext4 rw,nosuid,nodev,uhelper=hal 0 0
This is normal behavior on all "Unix" filesystems AFAIK. The root of a filesystem always belongs to root. Try creating a directory on it and then modify the permissions/owner of it. That should work fine. HTH mvg, Guus
On Thu, Feb 11, 2010 at 07:33:59PM +0100, Guus Snijders wrote:
On 10-02-10 13:10, Gaurish Sharma wrote:
Hello, I have a small problem with default permissions of Automounted Removable Devices. Whenever I mount it via KDE4.4's Auto-mounter. it sets all files to be owned by root.
$ ls -la /media/Backup/ total 24 drwxr-xr-x 3 root root 4096 Feb 10 16:07 . drwxr-xr-x 6 root root 4096 Feb 10 17:30 .. drwx------ 2 root root 16384 Feb 10 16:07 lost+found [...] $ cat /etc/mtab /dev/sdb1 /media/Backup ext4 rw,nosuid,nodev,uhelper=hal 0 0
This is normal behavior on all "Unix" filesystems AFAIK. The root of a filesystem always belongs to root.
It doesn't have to. For the directory shown this is probably just because the filesystem was created by root. I mount removable devices manually, and owner- ship (as stored on the disk being mounted) is always preserved. The permissions on the mount point itself don't seem to matter. If KDE's automounter is actually changing ownership that's sort of 'evil' IMHO. Ciao, -- FA O tu, che porte, correndo si ? E guerra e morte !
Hi, Idea was for quick and dirty data sharing. example, my friend brings portable hdd & I need to copy project files into that removable volume. I can't do that without being root, since the removeable device changes everything(I have lot of friends), putting entry in fstab is also not a solution. so I have to resort to opening dolphin in super user mode as a workaround.
On 11-02-10 23:51, Gaurish Sharma wrote:
Hi, Idea was for quick and dirty data sharing. example, my friend brings portable hdd& I need to copy project files into that removable volume.
I can't do that without being root, since the removeable device changes everything(I have lot of friends), putting entry in fstab is also not a solution.
Well, for quick&dirty sharing, i'd use FAT32. It has some constraints, but has the big advantage that most OS'es understand it. It also "fixes" the problem of permissions, since it doesn't support those ;). OTOH; if the data is always shared amongst the same users, you could also try to find/create a group with the same GID on all systems. Then you can use a better FS and set the permissions to that GID. mvg, Guus
On 12 February 2010 17:17, Guus Snijders <gsnijders@gmail.com> wrote:
On 11-02-10 23:51, Gaurish Sharma wrote:
Hi, Idea was for quick and dirty data sharing. example, my friend brings portable hdd& I need to copy project files into that removable volume.
I can't do that without being root, since the removeable device changes everything(I have lot of friends), putting entry in fstab is also not a solution.
Well, for quick&dirty sharing, i'd use FAT32. It has some constraints, but has the big advantage that most OS'es understand it. It also "fixes" the problem of permissions, since it doesn't support those ;).
OTOH; if the data is always shared amongst the same users, you could also try to find/create a group with the same GID on all systems. Then you can use a better FS and set the permissions to that GID.
mvg, Guus
I'm not able to reproduce this. Could you hotplug an ext2-formatted drive and see if it also doesn't work there? -- GPG/PGP ID: B42DDCAD
participants (4)
-
fons@kokkinizita.net
-
Gaurish Sharma
-
Guus Snijders
-
Ray Rashif