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.
- 11-28-2007 #1Just 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!!
- 11-28-2007 #2Just 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:
Then you don't need a special .bashrc for each user...Code:case " $(groups) " in *\ developer\ *) echo "dev!" ;; *\ user\ *) echo "user!" ;; esac
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...
- 11-29-2007 #3Linux 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
Your users will get something like this the first time they login:Code:chage -d0 <username>
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.


Reply With Quote
