LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-01-2007, 08:57 AM   #1
shan_nathan
Member
 
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137

Rep: Reputation: 15
User should not change password


Dear all,

How to deny a normal user , for changing his own password.


Thanks
 
Old 11-01-2007, 10:24 AM   #2
reverse
Member
 
Registered: Apr 2007
Distribution: Gentoo
Posts: 337

Rep: Reputation: 30
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.
 
Old 11-02-2007, 10:50 AM   #3
Micro420
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: Reputation: 45
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.
 
Old 11-02-2007, 03:42 PM   #4
complich8
Member
 
Registered: Oct 2007
Distribution: rhel, fedora, gentoo, ubuntu, freebsd
Posts: 104

Rep: Reputation: 17
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
what is the command to make a user change their password after creating a new user? naweenio Linux - Newbie 7 01-05-2005 07:07 AM
USER - change password linuxfond Linux - Newbie 4 07-02-2004 01:06 PM
About change user password ust Linux - General 1 12-23-2003 01:59 AM
How to change all user password to the same? explorer1979 Linux - General 3 04-09-2003 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration