Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nano's default permissions for files?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
eklynx
n00b
n00b


Joined: 24 Jan 2003
Posts: 7

PostPosted: Thu Jan 22, 2004 5:38 pm    Post subject: nano's default permissions for files? Reply with quote

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
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Thu Jan 22, 2004 6:36 pm    Post subject: Reply with quote

That's controlled by umask, but remember that it's backwards compared to chmod (7 - chmod value).

Code:
umask


will show you what it's currently set to, and to set it to 644, do this:

Code:
umask 133


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
View user's profile Send private message
eklynx
n00b
n00b


Joined: 24 Jan 2003
Posts: 7

PostPosted: Thu Jan 22, 2004 7:26 pm    Post subject: Reply with quote

touching makes files with permissions corrcet, but nano still makes files 600 by default...
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Jan 24, 2004 5:26 am    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Sat Jan 24, 2004 1:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum