Is there any condition that all the entries in /etc/passwd and /etc/passwd.tmp file should be similar which is not in my case."
In the sense formatwise with similar entries like username,password etc. In the display I have just shown few lines from /etc/passwd file. Otherwise both the files are...
You are right It was a typo.
Pl have a look at the script called au meant for automating useradd process.
# vi au
sed s/:/" "/g /etc/passwd > ./passwd.tmp
cat ./passwd.tmp | while read user passwd uid gid comment dir shell
do
useradd -p $passwd -u $uid -g $gid -c "$comment" -d $dir -s $shell...
Hi Mike042
This is my script.
# vi addingusers
cat /etc/passwd | while read user passwd uid gid comment dir shell
do
useradd -p $passwd -u $uid -g $gid -c "$comment" -d $dir -s $shell
done
~
This is the display of /etc/passwd file.
# cat /etc/passwd
root:x:0:1:Super-User:/:/usr/bin/ksh...
Hi AlexRabbot
Pl open the link and download psftp.exe. Very simple and can be installed on your Windows XP.
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Then double click psftp on your PC console.
At the prompt type -- open IP ADDRESS
Then type -- put filename
You can...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.