Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
umask 0077
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Mon Jan 30, 2006 2:46 pm    Post subject: umask 0077 Reply with quote

hi!

does it make a sence to set umask 0077?

PS if you're not sure, don't reply please!
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Mon Jan 30, 2006 4:14 pm    Post subject: Reply with quote

If you set umask to 0077 nobody except your user has access to the data. So it depends on you if you want to give access to your data to somebody in your group (somebody other) or not. If you have only data nobody else should have access to, it is wise to set umask to 0077. If most of your data should be shared with others you should set umask to something other. It's your choice and nobody can help you choosing the right value ;).
Regards,

Sino
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Mon Jan 30, 2006 5:08 pm    Post subject: Reply with quote

thanx!

i'd restrict before i let something...
so umask 0077 is wise to set
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Mon Jan 30, 2006 10:15 pm    Post subject: Reply with quote

Here's how I do:

1. umask is set to default. So I can read, write, ... but others can just read and write (So everybody can see my data but not overwrite it).
2. I've got two additinal directories in my home. The first one is set to 700 which means nobody except me can access, read and write to it. I use this directory to store data nobody else shall see. The second directory, called shared, is set to 777, which means everybody can read and write to it. It is used to share files with others.
However, everybody has its own method to handle restrictions to his data and/or shares. That's just my two cents.
Regards,

Sino
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Thu Feb 02, 2006 2:26 pm    Post subject: Reply with quote

SinoTech wrote:
Here's how I do:

1. umask is set to default. So I can read, write, ... but others can just read and write (So everybody can see my data but not overwrite it).
2. I've got two additinal directories in my home. The first one is set to 700 which means nobody except me can access, read and write to it. I use this directory to store data nobody else shall see. The second directory, called shared, is set to 777, which means everybody can read and write to it. It is used to share files with others.
However, everybody has its own method to handle restrictions to his data and/or shares. That's just my two cents.
Regards,

Sino


okay!
thanx for the tip!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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