LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-13-2009, 11:19 AM   #1
Ani
LQ Newbie
 
Registered: Oct 2002
Posts: 27

Rep: Reputation: 0
How Set Default Umask


How do you set the default Umask setting for all users on the computer in Slackware?

I tried to change it in /etc/profile but it did not change for root or other users.
root is using /bin/bash and all other users are using /bin/false so they do not have a local .profile.

The other users are using the chroot option in openssh5.2 and thus using the "ForceCommand internal-sftp" option.
Anyone know what shell the internal-sftp is using?

I don't see a /etc/default/bashrc like on other distros.
 
Old 11-13-2009, 03:02 PM   #2
HaroldWho
Member
 
Registered: Nov 2006
Location: southeastern PA
Distribution: Slackware
Posts: 130

Rep: Reputation: 23
What about 'umask 022' in /etc/rc.d/rc.local

BTW, my /etc/profile contains the following:
Code:
# Default umask.  A umask of 022 prevents new files from being created
# group and world writable.
umask 022
 
Old 11-14-2009, 08:49 AM   #3
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 459

Rep: Reputation: 254Reputation: 254Reputation: 254
Hi Ani

/etc/login.defs
search for UMASK and change

Regards
Jack
 
  


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
set default umask to a directory or a group luvlinux2009 Linux - Security 4 09-17-2009 08:54 PM
Set default umask for ssh as non-root WorkingClassHero Linux - Security 2 02-19-2008 10:09 AM
Umask and Linux Default Permissions Sandoomaphone Linux - Security 9 08-23-2004 04:48 PM
can you set a default umask for only certain directories? BrianK Linux - General 3 06-14-2004 09:02 PM
Where to set default file permissions (umask)? tredegar Linux - Newbie 14 01-27-2004 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:43 AM.

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