[arch-general] Udev Automounting Rule
Hi, I'm using the first rule given here: https://wiki.archlinux.org/index.php/Udev When I plug a USB (fat32) stick, the permissions of the corresponding directory under /media are fine (root:users), but when I plug an external HD (ext3, also through USB), I get the following user:group settings: 1001:1001. What the... ?! Regards, -- Bastien
To put it simply the ext filesystem supports UNIX file attributes and stores the owner and group of the file in the disk, unlike FAT does. So currently the user/group the ext3 says the file is owned by, doesn't exist in the current system. -- (\_ /) copy the bunny to your profile (0.o ) to help him achieve world domination. (> <) come join the dark side. /_|_\ (we have cookies.)
Jesse Jaara a écrit :
To put it simply the ext filesystem supports UNIX file attributes and stores the owner and group of the file in the disk, unlike FAT does. So currently the user/group the ext3 says the file is owned by, doesn't exist in the current system.
All right, but I did: # chown -R mylogin:users /media/foo -- Bastien
Jesse Jaara a écrit :
To put it simply the ext filesystem supports UNIX file attributes and stores the owner and group of the file in the disk
% ls -l /dev/sdc1 brw-rw---- 1 root storage 8, 49 Sep 10 12:48 /dev/sdc1 Shouldn't /media/foo have the same user/group ? -- Bastien
2011/9/10 Bastien Dejean <eschyle@gmail.com>:
Jesse Jaara a écrit :
To put it simply the ext filesystem supports UNIX file attributes and stores the owner and group of the file in the disk
% ls -l /dev/sdc1 brw-rw---- 1 root storage 8, 49 Sep 10 12:48 /dev/sdc1
Shouldn't /media/foo have the same user/group ?
-- Bastien
No those are the the user/group of the device node FILE /dev/sdc1 and teell who is allowed to interact with the disk. -- (\_ /) copy the bunny to your profile (0.o ) to help him achieve world domination. (> <) come join the dark side. /_|_\ (we have cookies.)
Jesse Jaara a écrit :
No those are the the user/group of the device node FILE /dev/sdc1 and teell who is allowed to interact with the disk.
I solved it with: # chown -hR root:storage /media/foo # chmod 775 /media/foo Cheers, -- Bastien
Bastien Dejean wrote:
What the... ?!
It seems that the Popcorn Hour I'm plugging my drive to is chowning and chmoding it. Any Popcorn Hour experts out there? -- Bastien
participants (2)
-
Bastien Dejean
-
Jesse Jaara