LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2008, 03:07 PM   #1
varunkant
Member
 
Registered: Jun 2008
Location: shimla
Distribution: redhat linux,Ubuntu 8.10
Posts: 41

Rep: Reputation: 15
Smile user passwd


Hello ....

What is the command that a user can not change his passwd...


thanks in advanced..
 
Old 06-16-2008, 03:17 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
There isn't one to my knowledge but I'll ask why would you want this? You should allow users to change their passwords. In fact, having users forced to change their passwords (every 30-90 days) with a minimum character set with Uppercase, Lowercase, Numbers and Special Characters only increases security.
 
Old 06-16-2008, 05:51 PM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
Quote:
Originally Posted by varunkant View Post
Hello ....

What is the command that a user can not change his passwd...


thanks in advanced..
You could "chmod 700 /bin/passwd".

Anyway, why would you want to do this?

The passwords are stored encrypted, so you can't know them anyway even if you are root. At most, you can change the passwd by another. Whatever a user do with it's password will not prevent you from being able to change it so there's no point in disallowing that for users.

If you want to harden the system, there are ways to ensure that the passwords are secure, and refuse to accept them if they are not.
 
Old 06-17-2008, 02:37 PM   #4
varunkant
Member
 
Registered: Jun 2008
Location: shimla
Distribution: redhat linux,Ubuntu 8.10
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks

just for knowledge only.. i want to know that it is possible or not...
 
Old 06-17-2008, 02:47 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
See the passwd man page.
Quote:
passwd -n min
The default is 0 which allows a password change at any time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how passwd(1) for normal user changes /etc/shadow? sknowonweb Linux - Newbie 1 12-22-2005 01:06 PM
using passwd as a chroot'ed user - help! xlobsterx Linux - Software 1 04-14-2005 07:22 AM
Ftp user /passwd apenguinlinux Linux - Security 3 02-04-2005 05:06 AM
RHEL3 user passwd help mufy Red Hat 1 01-28-2005 07:08 AM
user can change passwd kelper Linux - Software 3 08-28-2003 05:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration