[huskerlug] Re: Easy Question? User alias?

  • From: Ben Chavet <ben@xxxxxxxxxxxx>
  • To: huskerlug@xxxxxxxxxxxxx
  • Date: Mon, 26 Aug 2002 04:05:38 -0500

heh, guess I was wrong :o)

--Ben Chavet

Quoting Carl Lundstedt <clundst@xxxxxxxxxxxxxxxx>:

> 
> Got it.
> Here's what I did (basically what JR suggested), your mileage may vary
> if you wish to do this.
> (AS ROOT)
> 
> more /etc/passwd
> identified the user I wanted to alias, let's say it look like:
> hlug1:x:500:500::/home/hlug1:/bin/bash
> 
> I then did a:
> adduser -u500 hlug2
> then, vi /etc/passwd and changed the uid for hlug2 and the home
> directory
> 
> before: hlug2:x:500:501::/home/hlug2:/bin/bash
> after: hlug2:x:500:500::/home/hlug1:/bin/bash
> (You should be able to just copy/paste as JR suggested, but I was
> working on it when JR's email came in.)
> (still as root)
> 
> passwd hlug2
> NEW Unix password: xxxxxxxx   <- set to the same as hlug1
> 
> logged out.  Now I:
> ssh -lhlug2 server.unl.edu
> hlug2@server's password: xxxxxxxxx
> Last login: Mon Aug 26 12:15:32 2002 from sshclient.unl.edu
> [hlug1@server hlug1]$ whoami
> hlug1
> 
> :)
> 
> Carl Lundstedt
> UNL
> 
> On Mon, 2002-08-26 at 12:56, J.R. Wessels wrote:
> > 
> > I wonder... perhaps copy/pasting the line in the passwd file and just 
> > changing the user name?  The number id, group id and home directory could
> be 
> > the same.  The file system doesn't store the usernames in the file 
> > permissions, but uses a number.  The number is then referenced for us mere
> 
> > humans to use in the passwd and group files.
> 
> 
> 
> ----
> Husker Linux Users Group mailing list
> To unsubscribe, send a message to huskerlug-request@xxxxxxxxxxxxx
> with a subject of UNSUBSCRIBE
> 
> 




----
Husker Linux Users Group mailing list
To unsubscribe, send a message to huskerlug-request@xxxxxxxxxxxxx
with a subject of UNSUBSCRIBE


Other related posts: