Results 1 to 10 of 10
  1. #1

    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.

  2. #2
    /etc/profile
    You can do an "if" there to have it different for users/groups

  3. #3
    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?

  4. #4
    Yes, it uses the default.
    For the jail thing it depends on how its setuped.

  5. #5
    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. #6
    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. #7
    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. #8
    Join Date
    Aug 2004
    Location
    Colorado, US
    Posts
    425
    yes, exactly

  9. #9
    That worked yesterday, Thanks for everyones help.

  10. #10
    Join Date
    Aug 2004
    Location
    Colorado, US
    Posts
    425
    No problem, glad to hear it helped you

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •