LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-26-2006, 09:07 PM   #1
scabrous1
LQ Newbie
 
Registered: Nov 2005
Distribution: SUSE10
Posts: 15

Rep: Reputation: 0
umask questions?


using SLES 9,

if I change /etc/login.defs so that umask 002, but users had already been created while the value was umask 022, then are
the users home directories NOT group writeable? What utility do I use to change this? facls?

Also ... if I create an /etc/profile.local with the only command being umask 002, will this have the effect of causing all new files
created by users to be group writeable?

How do I confirm that this is working?

Scabby
 
Old 01-26-2006, 10:04 PM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
You can try:

Code:
cd /home
for file in *
do
chmod g+w $file
done
This will just change their home directories. If you want to change all their files use a "-R" as an option for the chmod command. Note, this can piss off users if they don't expect it. I would add a message about it to /etc/motd if it is a change in policy.
 
Old 01-26-2006, 11:08 PM   #3
scabrous1
LQ Newbie
 
Registered: Nov 2005
Distribution: SUSE10
Posts: 15

Original Poster
Rep: Reputation: 0
thank you ... very helpful.

I believe that, from now on because I have created the /etc/profiles.local file, users newly created files will by default be group writeable ... am I correct in believing that?

Thnx again

scabby
 
Old 01-27-2006, 02:21 PM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
I wish I could correctly answer that for you... but I am not certain. I would test it to be sure. I have never seen the /etc/profiles.local before. I don't use bash myself except occasionally so I have never played with it too much.

I thought global information was in /etc/profile -- but have no idea if there is a .local version of that or what the difference would be.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Randvegeta Linux - Software 3 11-27-2009 07:52 AM
what is umask osmansm Linux - Newbie 11 12-09-2005 12:30 PM
Umask metallica1973 Linux - Software 4 11-27-2005 01:21 PM
umask wbdune Linux - Newbie 5 10-14-2003 01:53 AM
Umask robyso Linux - Security 1 07-14-2003 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:59 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