LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 07: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, 12:51 PM   #2
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Rep: Reputation: 40
what's the exact file name ( and the full path to it ) ?
 
Old 07-21-2011, 11:34 PM   #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, 12:31 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

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

Original Poster
Rep: Reputation: Disabled
dat drive
 
Old 07-22-2011, 02: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, 12:16 PM   #7
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

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


Reply



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 08:01 AM
umask and /usr/bin/umask linux_user2011 Linux - Newbie 6 04-27-2011 02:05 AM
umask trophy Linux - General 1 04-03-2004 01:17 AM
Umask robyso Linux - Security 1 07-14-2003 02:33 PM
umask Spaz17 Linux - Newbie 1 07-04-2003 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:34 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
Open Source Consulting | Domain Registration