Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    24

    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

    Regards!!

  2. #2
    Just Joined!
    Join Date
    Nov 2007
    Location
    Camp Pendleton
    Posts
    55
    Hello,

    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:
    Code:
    case " $(groups) " in *\ developer\ *)
            echo "dev!"
            ;;
        *\ user\ *)
            echo "user!"
            ;;
    esac
    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
    Location
    Portsmouth, UK
    Posts
    539
    To make a user change thier password on first login you can "expire" the password with chage

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

    Code:
    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.

Posting Permissions

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