hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : What file is UMASK stored for BASH?
Reply

Forum Jump

What file is UMASK stored for BASH?

Reply Post New Thread In Web Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-17-2004, 12:40 PM
bryman55 bryman55 is offline
Newbie
 
Join Date: Jun 2004
Posts: 16

What file is UMASK stored for BASH?


I am trying to configure the default umask setting for my users when they login using ssh. What file is this in? Is there a way I can change it per user? I am running RedHat. Any help will be appreciated.

Thank You.



Sponsored Links
  #2  
Old 09-17-2004, 12:44 PM
darksoul darksoul is offline
Junior Guru
 
Join Date: Oct 2002
Posts: 229
/etc/profile
You can do an "if" there to have it different for users/groups

__________________
Server Admin Services

  #3  
Old 09-17-2004, 12:51 PM
bryman55 bryman55 is offline
Newbie
 
Join Date: Jun 2004
Posts: 16
Quote:
Originally posted by darksoul
/etc/profile
You can do an "if" there to have it different for users/groups
There are no umask settings now in that file. Does bash have a default setting 0022 if no umask is sepcified? I am also using chroot'd accounts. How can I set this within each jail?

Sponsored Links
  #4  
Old 09-17-2004, 12:57 PM
darksoul darksoul is offline
Junior Guru
 
Join Date: Oct 2002
Posts: 229
Yes, it uses the default.
For the jail thing it depends on how its setuped.

__________________
Server Admin Services

  #5  
Old 09-17-2004, 01:04 PM
inimino inimino is offline
Aspiring Evangelist
 
Join Date: Aug 2004
Location: Colorado, US
Posts: 425
for chroot just use the same file in the chroot, and bash will read it.

  #6  
Old 09-17-2004, 01:08 PM
bryman55 bryman55 is offline
Newbie
 
Join Date: Jun 2004
Posts: 16
Quote:
Originally posted by darksoul
Yes, it uses the default.
For the jail thing it depends on how its setuped.
Is the default setting compiled into BASH?

  #7  
Old 09-17-2004, 01:10 PM
bryman55 bryman55 is offline
Newbie
 
Join Date: Jun 2004
Posts: 16
Quote:
Originally posted by inimino
for chroot just use the same file in the chroot, and bash will read it.
You mean copy /etc/profile to the chroot'd user's /etc/?

  #8  
Old 09-17-2004, 01:36 PM
inimino inimino is offline
Aspiring Evangelist
 
Join Date: Aug 2004
Location: Colorado, US
Posts: 425
yes, exactly

  #9  
Old 09-18-2004, 10:25 AM
bryman55 bryman55 is offline
Newbie
 
Join Date: Jun 2004
Posts: 16
That worked yesterday, Thanks for everyones help.

  #10  
Old 09-18-2004, 10:47 AM
inimino inimino is offline
Aspiring Evangelist
 
Join Date: Aug 2004
Location: Colorado, US
Posts: 425
No problem, glad to hear it helped you

Reply

Related posts from TheWhir.com
Title Type Date Posted
Dropbox Vulnerability Allows Unauthorized Access of User Files Web Hosting News 2014-05-07 14:31:27
AeroFS Launches Private File Sharing Software Web Hosting News 2013-11-22 17:00:53
Egnyte Launches Program to PRISM-Proof Enterprise Cloud File-sharing Web Hosting News 2013-09-27 13:45:48
ownCloud Releases Latest Version of Enterprise Private Cloud Platform Web Hosting News 2013-07-16 14:20:14
MIT Researchers Propose New Hardware Design to Encrypt Cloud Web Hosting News 2013-07-08 11:15:26


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?