Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-01-2007, 09:57 AM
|
#1
|
Member
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137
Rep:
|
User should not change password
Dear all,
How to deny a normal user , for changing his own password.
Thanks
|
|
|
11-01-2007, 11:24 AM
|
#2
|
Member
Registered: Apr 2007
Distribution: Gentoo
Posts: 337
Rep:
|
Maybe something like:
Code:
chmod -s `which passwd`
I don't know if you should do that.. nor why you'd want to do that.
|
|
|
11-02-2007, 11:50 AM
|
#3
|
Senior Member
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Rep:
|
Not sure if this will work, but you can also use the chage command set the MINIMUM days for a password change to something like 9999. This will force a user to wait 9999 days before he or she can change their password
Another thing to look at would be in /etc/pam.d/. Maybe there is a setting somewhere in there to do this by default.
|
|
|
11-02-2007, 04:42 PM
|
#4
|
Member
Registered: Oct 2007
Distribution: rhel, fedora, gentoo, ubuntu, freebsd
Posts: 104
Rep:
|
I'd go for chmod o-rx `which passwd` myself.
same effect, except that passwd still works. You could go further and enable specific users or groups to execute the passwd command using posix acl's...
|
|
|
All times are GMT -5. The time now is 11:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|