View previous topic :: View next topic |
Author |
Message |
eklynx n00b
Joined: 24 Jan 2003 Posts: 7
|
Posted: Thu Jan 22, 2004 5:38 pm Post subject: nano's default permissions for files? |
|
|
how do you change the file permissions that nano sets to new files? right now it sets them 600 when i want it 644 for a certain user.
Thanks in advance.
-Edgars- |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Thu Jan 22, 2004 6:36 pm Post subject: |
|
|
That's controlled by umask, but remember that it's backwards compared to chmod (7 - chmod value).
will show you what it's currently set to, and to set it to 644, do this:
If you want that user to always have that umask add it to their ~/.bashrc _________________ Search | Read | Answer | Report | Strip
Last edited by tomk on Sat Jan 24, 2004 1:31 pm; edited 1 time in total |
|
Back to top |
|
|
eklynx n00b
Joined: 24 Jan 2003 Posts: 7
|
Posted: Thu Jan 22, 2004 7:26 pm Post subject: |
|
|
touching makes files with permissions corrcet, but nano still makes files 600 by default... |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sat Jan 24, 2004 5:26 am Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Sat Jan 24, 2004 1:33 pm Post subject: |
|
|
That's strange, on my system nano uses the permissions as set by umask. Maybe you should file a bug report _________________ Search | Read | Answer | Report | Strip |
|
Back to top |
|
|
|