Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    2 questions about security ( chmod and LDAP )

    Hello everyone, im securing few servers, and in all of them, i need create the user, modify her password at first time, modify a special bashrc to users and developers and that is very cumbersome do it in each servers. Could this be config via a LDAP server and each user use that config in the rest of the host??

    2 Question, what does this permisson means ?

    -rwxr--r-T 1 root root 270 Oct 29 11:01 file

    especially the big T


  2. #2
    Just Joined!
    Join Date
    Nov 2007
    Camp Pendleton

    I would usually put stuff like that in /etc/bash.bashrc. Users and developers would probably have different permissions, so to do specific things for those groups, you can test who's a member of a supplementary group.

    Actually, check this out:
    case " $(groups) " in *\ developer\ *)
            echo "dev!"
        *\ user\ *)
            echo "user!"
    Then you don't need a special .bashrc for each user...

    The T permission is the sticky bit.
    File system permissions - Wikipedia, the free encyclopedia

    I don't think it does anything for a non-executable file...

  3. #3
    Linux Enthusiast
    Join Date
    Aug 2006
    Portsmouth, UK
    To make a user change thier password on first login you can "expire" the password with chage

    chage -d0 <username>
    Your users will get something like this the first time they login:

    login as: auser
    auser@###'s password:
    You are required to change your password immediately (root enforced)
    WARNING: Your password has expired.
    You must change your password now and login again!
    Changing password for user auser.
    Changing password for auser
    (current) UNIX password:
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  4. $spacer_open

Posting Permissions

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