umask in RHEL 5.3
i have a server on RHEL5.3,i want to change a permission of a file through chmod 777 /path to file ,its work but when i restart my server its permission again change as default.
i use umask 777 /path to file but i want make it permanent. Please help me how make it in ".baserc" file or any thing else any alternate way. can i use in .baserc file umask 777 /path to file ---this line,is it right sentex? thanks |
what's the exact file name ( and the full path to it ) ?
|
the path is /dev/sd0 and i want do its permission 777 permanently because my server shutdown after working days and after start on next day its permission again become default.
can i user umask edit in .bacerc file as-- umask 777 /dev/sd0 is it correct sentex ? Any other alternative way can be,so please tell me... |
What device is supposed to be on /dev/sd0 ?
|
dat drive
|
Dont know exactly what you are trying to do here but you want to 'chmod 777 /path' and not 'umask'.
The other option is to modify '/etc/fstab' and that would be better. The settings in '/etc/fstab' are persistant across reboots. Hope this helps. |
yeah, would be helpful to know what are you trying to achieve.
|
All times are GMT -5. The time now is 02:54 PM. |