Re: [vox-tech] Can a username be changed?

2003-02-10 Thread Michael J Wenk
to change the name, and well, all hell broke use. I guess the moral of the story is to have the backup tapes handy... - Original Message - From: "Bill Kendrick" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 09, 2003 2:48 PM Subject: Re: [vox-t

Re: [vox-tech] Can a username be changed?

2003-02-09 Thread Bill Kendrick
On Sun, Feb 09, 2003 at 02:55:24PM -0800, ME wrote: > > No, that was provided as an example of what kinds of problems could come > up when assumptions are made about the user's home dir != their > username... Oh, whoops. I was skimming too quickly. :^) Sorry -bill! -- [EMAIL PROTECTED]

Re: [vox-tech] Can a username be changed?

2003-02-09 Thread ME
Bill Kendrick said: > On Sun, Feb 09, 2003 at 01:58:58PM -0800, ME wrote: > >> (Hey kids, dont try this at home) >> # cd /home >> # for i in * ; do chown ${i}.${i} $i ; done > > Actually, just changing the old username to the new one > in /etc/group seemed to fix the group ownership problems. > >

Re: [vox-tech] Can a username be changed?

2003-02-09 Thread Bill Kendrick
On Sun, Feb 09, 2003 at 01:58:58PM -0800, ME wrote: > (Hey kids, dont try this at home) > # cd /home > # for i in * ; do chown ${i}.${i} $i ; done Actually, just changing the old username to the new one in /etc/group seemed to fix the group ownership problems. File ownership changed magically af

Re: [vox-tech] Can a username be changed?

2003-02-09 Thread Bill Kendrick
On Sun, Feb 09, 2003 at 01:44:22PM -0800, Jeff Newmiller wrote: > > I would also make sure to rename their mail spool file, This user doesn't get mail. :^) This user doesn't even get to run a shell or see files in their home directory. (I'm working on the kiosk box for Newsbeat, now that KDE 3.1

Re: [vox-tech] Can a username be changed?

2003-02-09 Thread Bill Kendrick
On Sun, Feb 09, 2003 at 01:35:41PM -0800, Foo Lim wrote: > Hi Bill, > > I've never had to change someone's login, but you might look into > usermod(8). It worked like a charm. Thanks, Foo! -bill! -- [EMAIL PROTECTED]Was I useful? Rate this message! http://newbreedsoftware

Re: [vox-tech] Can a username be changed?

2003-02-09 Thread ME
(some mistakes fixed) ME said: > Using vipw or some other tool for editing /etc/passwd is a way to do > this. > > Be careful in this. Some potential "gotchas": > > Often home dirs are namedafter the username. It is a good idea to alter > name of home dir to match new username. Some scripts may do

Re: [vox-tech] Can a username be changed?

2003-02-09 Thread ME
Using vipw or some other tool for editing /etc/passwd is a way to do this. Be careful in this. Some potential "gotchas": Often home dirs are namedafter the username. It is a good idea to alter name of home dir to match new username. Some scripts may do things "improperly" and do a `whoami` and us

Re: [vox-tech] Can a username be changed?

2003-02-09 Thread Shawn P. Neugebauer
On Sunday 09 February 2003 01:44 pm, Jeff Newmiller wrote: > On Sun, 9 Feb 2003, Bill Kendrick wrote: > > Is there a way to change a user's login name under Unix? > > such a question... ;) > > > Is it safe enough to simply rename their home directory and > > edit their entry in /etc/passwd and /etc

Re: [vox-tech] Can a username be changed?

2003-02-09 Thread Shawn P. Neugebauer
On Sunday 09 February 2003 01:29 pm, Bill Kendrick wrote: > Is there a way to change a user's login name under Unix? > > Is it safe enough to simply rename their home directory and > edit their entry in /etc/passwd and /etc/shadow? > > Or am I dealing with dangerous powers, and would be safe enough

Re: [vox-tech] Can a username be changed?

2003-02-09 Thread Jeff Newmiller
On Sun, 9 Feb 2003, Bill Kendrick wrote: > > Is there a way to change a user's login name under Unix? such a question... ;) > Is it safe enough to simply rename their home directory and > edit their entry in /etc/passwd and /etc/shadow? Safe enough, because security is managed by UID through t

Re: [vox-tech] Can a username be changed?

2003-02-09 Thread Foo Lim
Hi Bill, I've never had to change someone's login, but you might look into usermod(8). FL On Sun, 9 Feb 2003, Bill Kendrick wrote: > Is there a way to change a user's login name under Unix? > > Is it safe enough to simply rename their home directory and > edit their entry in /etc/passwd and /e

[vox-tech] Can a username be changed?

2003-02-09 Thread Bill Kendrick
Is there a way to change a user's login name under Unix? Is it safe enough to simply rename their home directory and edit their entry in /etc/passwd and /etc/shadow? Or am I dealing with dangerous powers, and would be safe enough creating a brand new user and deleting the old one? -- [EMAIL PR