LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   umask in RHEL 5.3 (https://www.linuxquestions.org/questions/linux-newbie-8/umask-in-rhel-5-3-a-892935/)

ashicse 07-21-2011 07:39 AM

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

DBabo 07-21-2011 12:51 PM

what's the exact file name ( and the full path to it ) ?

ashicse 07-21-2011 11:34 PM

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...

chrism01 07-22-2011 12:31 AM

What device is supposed to be on /dev/sd0 ?

ashicse 07-22-2011 12:48 AM

dat drive

honeybadger 07-22-2011 02:48 AM

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.

DBabo 07-22-2011 12:16 PM

yeah, would be helpful to know what are you trying to achieve.


All times are GMT -5. The time now is 02:54 PM.