08-11-2002
cp and older copy ?
most linux distro's make copies of passwd
and call them passwd- or passwd.bak
most bsd's make a backup of the complete /etc dir
try some stuff like ls passwd* in /etc
let me know, and good luck
10 More Discussions You Might Find Interesting
1. Solaris
Hi Folks ,
Would be grateful if someone could help me out in one of the question that came to my mind . If the /etc/passwd file has been deleted and the system has been rebooted . Then i dont think that any user would be able to login and the system will be useless . Whats the best solution for... (5 Replies)
Discussion started by: gera_sachin125
5 Replies
2. Linux
hai friends i have deleted passwd command using rm command i thought it will come again at the time of rebooting but it is completely deleted how to get it worked again (5 Replies)
Discussion started by: venkata.ganesh
5 Replies
3. Shell Programming and Scripting
We are using SunOS 5.10 and Korn Shell. If we need to figure out who deleted our crontab file for a particular user what do we do.
Thanks in Advance!!
---------- Post updated at 08:08 AM ---------- Previous update was at 07:19 AM ----------
Friends,
Please help.... (5 Replies)
Discussion started by: mehimadri
5 Replies
4. Shell Programming and Scripting
Hi,
I am having a problem in the below code:-.
$ cat x.csv
baseball,NULL,8798765,Most played,0,5,12367,NULL,NULL,98,67,Reason is not sufficient
baseball,NULL,8928192,Most played,0,4,76893,NULL,RAW,54,78,Reason is not sufficient
baseball,NULL,5678945,Most played,9,2,1,6,NULL,6789,123,Reason... (4 Replies)
Discussion started by: scripter12
4 Replies
5. Solaris
Hi Folks,
I have Solaris 10, latest release.
We have passwd aging set in /etc/defalut/passwd.
I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging.
When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies
6. UNIX for Dummies Questions & Answers
Just wondering -- I just deleted one of the mailboxes on my mac, and was wondering where it went. I'd like to do an srm, and thought that it would go to my deleted messages mailbox, but it isn't there (and there were some messages in them.) Can anyone tell me? The mailbox doesn't contain any... (0 Replies)
Discussion started by: Straitsfan
0 Replies
7. Post Here to Contact Site Administrators and Moderators
as subject - need this done asap, in trouble (1 Reply)
Discussion started by: llcooljatt
1 Replies
8. AIX
Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies
9. Solaris
Hi all..
I moved the /etc/shadow and /etc/shadow files to /tmp and then rebooted my PARC machine running 5.10. I did it to see if I could recover from single user mode.
But, I forgot to enable the abort key-sequence which I earlier disabled.
Stuck!
One of my gurus told I had to... (9 Replies)
Discussion started by: satish51392111
9 Replies
10. UNIX for Dummies Questions & Answers
Hi
I was accessing our linux test server via putty and By mistake i deleted /etc/passwd file.....
It is allowing me to login..... So could anyone please help me out in this issue....
Please, it is urgent (6 Replies)
Discussion started by: rahul547
6 Replies
vipw(8) System Manager's Manual vipw(8)
NAME
vipw - Edits the /etc/passwd file
SYNOPSIS
/usr/sbin/vipw
DESCRIPTION
You use the vipw command to edit the /etc/passwd file with the editor defined in the EDITOR environment variable. If the variable is not
set, the default editor is vi.
The vipw command performs basic consistency checks on the edited file. If a hashed indexed passwd existed previously, the vipw command
uses the mkpasswd command to create recreate it.
The command must not be used on systems that use extended security attributes since it cannot set or change them. You must be root to run
this command. Only root and security administrators should have execute access to this command.
Since the vipw command cannot effectively change all the attributes of users, it should not be used in a secure environment.
The vipw command accesses the following files, and requires the listed permissions:
------------------------------
Permissions File
------------------------------
rw /etc/passwd
rw /etc/passwd.pag
rw /etc/passwd.dir
rw /etc/ptmp
rw /etc/ptmp.pag
rw /etc/ptmp.dir
------------------------------
EXAMPLE
To edit the /etc/passwd file, type the following command and add the required line entry: vipw
FILES
Specifies the command path
RELATED INFORMATION
Commands: passwd(1), passwd(4), adduser(8), mkpasswd(8) delim off
vipw(8)