[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 439
  • Last Modified:

GLOBAL PASSWD

I have some unix machine and I would like my user to logon on any station. I have create accounts on unixstaion1 and now how do I let users to logon to unixstation2.

I tried to copy  below user entry from uinxstaion1 to unixstation2 but it did't work I m not sure that if I need to compile passwd ??


user1:x:1359:10::/export/home/raza:/bin/csh
0
raza
Asked:
raza
  • 3
  • 3
1 Solution
 
razaAuthor Commented:
this is correct one

raza:x:1359:10::/export/home/raza:/bin/csh
0
 
tfewsterCommented:
The "x" in the password field means you're using a shadow password file (/etc/shadow); You need to copy the entry for raza into this file AND ensure the userid (1359) is unique on unixstation2 AND ensure the /etc/group files are the same AND create a home directory for raza on unixstation2 (Unless you are NFS mounting /export/home across to unixstation2).

IMO, you should consider setting NIS up so you only have one password file to maintain and shared home directories.
0
 
nicobCommented:
Hi,

It is not really necessary to copy over the /etc/shadow file.
You can first remove the 'x' from the /etc/passwd file and then you can run pwconv and then set a password for the user.
pwconv does the following if there is no line for the user in /etc/shadow :

Entries that are in the  /etc/passwd file and  not in  the /etc/shadow  file  will  be  added to the /etc/shadow file.

This command can only be used if you have superuser priviledges and you have to make sure that the 'x' is not in /etc/passwd. If the 'x' is already in /etc/passwd then pwconv thinks that there is already a password set for that specific user in /etc/shadow.

Hope this helps a bit.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
tfewsterCommented:
Are you still there, raza? If so, would you like to accept one of the comments as an answer (depending on which method you used)?

Cheers, Tim
0
 
razaAuthor Commented:
well, I got my problem solved somehow.... but I do got some idea from your comment so you may have the points...

One question I still do have that how do I let my user to cange unix password from windows without doing telnet?
0
 
razaAuthor Commented:
you may perpose an answer message
0
 
tfewsterCommented:
Glad to hear its working - I'll have a look at the password changing question.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now