![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| changing /cn@0:console file permissions | ErnieG | Security | 4 | 12-04-2007 05:39 AM |
| changing permissions on a 444 file (ie chmod 444) | ajcannon | UNIX for Dummies Questions & Answers | 1 | 08-31-2007 07:48 AM |
| Changing file permissions | FredSmith | UNIX for Dummies Questions & Answers | 7 | 05-17-2006 05:15 AM |
| Changing file permissions on upload | guix | UNIX for Advanced & Expert Users | 6 | 07-13-2004 01:37 PM |
| changing file permissions | gagansharma | Shell Programming and Scripting | 0 | 11-27-2001 08:26 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
changing default file permissions
How can I change the default permissions that are assigned when I create a file? (By default the file has: -rw-r--r-- ..... I'd like it to be -rw-r-----
How can I change this default behavior? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Quote:
Carl |
|
#3
|
|||
|
|||
|
try this
$chmod 644 |
|
#4
|
||||
|
||||
|
put the following in .profile
Code:
umask 026 |
|
#5
|
|||
|
|||
|
I put umask 077 (the permissions that I want, RWX for owner, nothing for group or all) in the .profile.
But after I logout and log back in, it's as if it is not working. Is .profile the correct file to put this line into? |
|
#6
|
||||
|
||||
|
You need to put the line in the startup file for whatever shell you are using. That way, when your shell starts after you login, it will set the umask. .profile is a common name for the startup file. But we need to know what shell you use to be sure.
|
|
#7
|
|||
|
|||
|
echo $SHELL
/bin/ksh Thanks! |
|||
| Google The UNIX and Linux Forums |