LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2011, 08:39 AM   #1
ashicse
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Rep: Reputation: Disabled
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
 
Old 07-21-2011, 01:51 PM   #2
DBabo
Member
 
Registered: Feb 2003
Distribution: Scientific Linux 6, Fedora
Posts: 445

Rep: Reputation: 37
what's the exact file name ( and the full path to it ) ?
 
Old 07-22-2011, 12:34 AM   #3
ashicse
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
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...
 
Old 07-22-2011, 01:31 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
What device is supposed to be on /dev/sd0 ?
 
Old 07-22-2011, 01:48 AM   #5
ashicse
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
dat drive
 
Old 07-22-2011, 03:48 AM   #6
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
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.
 
Old 07-22-2011, 01:16 PM   #7
DBabo
Member
 
Registered: Feb 2003
Distribution: Scientific Linux 6, Fedora
Posts: 445

Rep: Reputation: 37
yeah, would be helpful to know what are you trying to achieve.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
umask and permissions: has umask 007 bad side effects? browny_amiga Linux - General 2 09-09-2011 09:01 AM
umask and /usr/bin/umask linux_user2011 Linux - Newbie 6 04-27-2011 03:05 AM
umask trophy Linux - General 1 04-03-2004 02:17 AM
Umask robyso Linux - Security 1 07-14-2003 03:33 PM
umask Spaz17 Linux - Newbie 1 07-04-2003 11:12 AM


All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration