Click to See Complete Forum and Search --> : Startup Script...change permissions


XciterKid
08-06-2001, 03:40 PM
I've used redhat 7.1 for about 3 days now, so i'm not very adept at scripts yet. Anyways, how can I run the 'chown user directory' at startup to give write access to my window's partitions for a nonroot identity. For now i have to manually type this in the terminal to have give such permissions.

scanez
08-06-2001, 03:51 PM
Put that in your /etc/rc.local file, then it will run everytime at startup.

But I'm sure there has to be a way to make those permissions permanent without having to run that command at every startup. Maybe someone else has some ideas on this. (maybe some changes to /etc/fstab?)

SC

7
08-06-2001, 05:35 PM
Yah. Just put 'user' in the options field in /etc/fstab.

<device> <mount point> <type> <options>,user <dump>

Just bung it on the end like that.

XciterKid
08-06-2001, 07:51 PM
Using the 'user' option in fstab would work if i wanted the whole drive to be writable, but I only want to change ownership on one folder, to allow downloads to my windows operating system's partitions while in linux. So i'll just try the rc.local suggestion.

[ 06 August 2001: Message edited by: XciterKid ]