setting directory permissions

Marc Lijour (Professeur d'Informatique) marc-bbkyySd1vPWsTnJN9+BGXg at public.gmane.org
Sat Oct 4 00:07:27 UTC 2003


mount is run by root, and root probably assumes the ownership of the files (do 
a ls -l to check that).

you could add the user, uid and gid options in fstab to let the user mount the 
partition.
You also have to use sudo to give yourself the permission to mount, and umount 
the partition.

It comes handy to mount the partition from the .profile file and to umount it 
with the .logout file.

Marc

Le 3 Octobre 2003 18:48, David J Patrick a écrit :
>  Once again, what should be simple is driving me nuts !
>     background; pentiumIII, 500mhz, 512ram. Knoppix 3.2 based testing/
> unstable debian.
>
> after installing Knopix to the HD, I found I was unable to access
> several existing partitions as anything but root.
> I figured it was an fstab thing but have tried all sorts of fstab
> permutations without success.
> I have noticed that the permissions of the troubled /mnt/hd* directories
> are not set for user or group execute.
> chmod 777 /mnt/hda1/ does nothing
> nor does chmod a+x /mnt/hda1/
> what am I doing wrong ? Why can I not change the attributes for these
> directories ?
>
> help appreciated,
> thanks,
> Davamundo
>
> --
> The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list