Greetings Linux Enthusiasts..
I have one interesting query here..
Consider a scenario in which all /etc/passwd , /etc/passwd- as well as /etc/shadow files deleted.
In such condition what is most sure way to recover all users & passwords..
I hope you guys have solution..
Hi,
Right now on my system i have 5/6 users in my /etc/passwd file but all of them are in clear.
I know that normally encrypted passwords are in /etc/shadow and i know that the commands cryptpw and mkpasswd can be used to encrypt a string of character.
If for example an user is like this in passwd :
banana:lasagna:3:0:food:/:/bin/sh
Do i have to edit manually the shadow file with the encrypted string corresponding to "lasagna" here ? And what must i write in this shadow file ?
Thank you for the future answers !
Hi all,
I am slackware 14.0 user. Recently I face one problem. As a root i can change one of my normal user's (assuming Peter) password. However, when I login as Peter, and try to change the password, the system does not allow me to renew my password.
root@slackwa /etc# ls -la | grep shadow
-rw-r----- 1 root shadow 9 Nov 29 2013 gshadow
-rw------- 1 root root 0 Jun 20 2013 gshadow-
-rw-r----- 1 root shadow 2272 Apr 12 22:44 shadow
-rw------- 1 root root 2274 Apr 12 21:40 shadow-
root@slackwa /etc# ls -la | grep passwd
-rw-r--r-- 1 root root 2362 Apr 12 12:58 passwd
-rw------- 1 root root 2306 Jan 8 17:38 passwd-
-rw-r--r-- 1 root root 2305 Aug 11 2014 passwd~
peter@slackwa ~$ which passwd
/usr/bin/passwd
peter@slackwa ~$ ls -la /usr/bin/passwd
-rws--x--x 1 root root 68725 Sep 14 2012 /usr/bin/passwd*
peter@slackwa ~$ passwd
Changing password for peter
Old password:
Incorrect password for peter.
The password for peter is unchanged.
One thing I can assure is the password I input is correct. I have another slackware 14 running on Dell R410, but it does not has this problem.
Please kindly advice. Thank you.
t is that the passwd I changed to will not log me in and I chaged the passwd twice to make sure that it was not a typing error.
I did manage to create an account that I am using but I cant update packages or do much with it.
I have read shadow pat to passwd file but I am not sure what I am supposed to do with the file.
I have a feeling its got to do with keys on his account but I dont know much about that to reset them.
Can anyone help me with that?
user="john bob randy susan"
I extracted local user list as: cat /etc/passwd | cut -d ":" -f1
Now I need to write a script to find the difference in user between these two (users defined as above and local user). I tried many ways its not working. Any help
#!/bin/bash
users="john bob randy susan"
luser=`/bin/cat /etc/passwd | cut -d ":" -f1`
......
....
Thank you
Hello, I'm sort of a novice Linux user and was running into an issue with user migration. I'm trying to migrate users and groups from a RHEL 5.11 install to a CentOS 6.6 install, both systems are 64 bit. Initially I tried to do an rsync of the passwd, shadow, group and gshadow files with no luck. When trying to login with an existing account on the new server I get access denied. I tried to change the password on the new server, but even then it doesn't seem to change the password and I still get access denied. I then tried to tar up the four above files and then extracted them on the new server, but the same issue existed. I also created a new account on the old server, copied all the necessary files over to the new server and still have the same issues. Any ideas what I may be doing wrong or what I can try next? This is getting frustrating!
Thanks!
A few of my servers show that this user id has expired.
I know that this is the name of a user account and group account and if I check out /etc/passwd there is an entry under /sbin/nologin. And, if I check under say top -u nobody, I don't see anything running for that user account. However that is the extent of my knowledge on this user account.
Should I be concerned that the passwd for this account is expired or are there cron jobs/programs that rely on this account?
thanks
Hi, I'm really a newbie when it comes to Linux, so please bear with me.
We have a working FTP using vsftpd with a pam.d database (by the looks of it).
I've found the list of users/password in the /etc/vsftpd/ folder called passwd, but they are all encrypted.
How can I change the password for a single user? I'm sorry I've been looking for over 3 hourw, still don't understand how to do this.
Thank you very much for whomever can help.
Hi everyone, I hope you're all well, I've made a pretty stupid error and I hope someone can help, thanks for your time.
So, I had been warned by gnome and my package manager that my HDD was full which didn't seem right so I decided to look at Gnome's 'Disk Usage Analyzer' which made the problem appear obvious. There was apparently a complete 1.5TB copy of my home directory in the /srv/nfs/ directory, now I don't have much use for NFS anymore and I needed to install some software so I thought the solution was quite straightforward , I cd'ed to /srv/nfs/ and rm -rf'ed the directory and figured that I would fix nfs at a later date. Now this seems to have deleted my actual home directory, which is completely empty and it looks to me like I've lost ~1.5TB of data.
So firstly, Is it actually this operation which deleted my home directory or did I manage to do this at some other point with some other command?
And secondly do I have any chance of recovering files? I tried to unmount the partition when I realised what I had done but I kept getting an error to the effect that the drive was busy at which point I rebooted and got the same error, so I unplugged the machine. Googling led me to extundelete but I don't have access to another linux machine at the moment, would this be my best chance?
Thanks again for any replies.
Hey guys, I got samba working and I am able to access my files, however I am now trying to learn security with it. i am pretty much trying to allow certain groups access certain files. if you look at samba group you can see that I have @sambausers group to access sambagroup directory.
I have a user called sambatest01. the user can access "samba users only" but the user can access all of the other files as well. what is a correct set up on the other smb.conf to prevent users from accessing this? I cant seem to find a proper set up
[drivers]
path = /files/drivers
browseable = yes
read only = no
guest ok = no
guest only = no
[samba users only]
path = /files/sambagroup
browseable = yes
read only = no
guest ok = no
guest only = no
write list = @sambausers
valid users = @sambausers
I got this message when I issued users-admin in terminal.So I wanna know how to fix it. My machine is running Debian 7.5 Weezy + kali 1.0.9.
Thanks in advance.
(users-admin:11501): Gdk-WARNING **: users-admin: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.