[ILUG] moving user's home directories

Dave Burke dave at compsoc.com
Fri Sep 15 12:09:47 IST 2000


If you are doing it again, you may want to include the -m switch, from man
usermod....

"If the -m option is given  the  contents  of  the  current  home  
directory will be moved to the new home directory, which is created if it
does not already exist."

Without the -m switch, it will just update the /etc/passwd file, and the
next time the user logs in, it will not find the new directory as it will
not exist.

HTH,

Dave


On Fri, 15 Sep 2000, It appears Kae Verens said.......

> fergal daly wrote:
> > usermod -d /some/where/else  username
> > 
> > will do the trick
> 
> Thanks - it doesn't work on the server I'm using, but I'll keep it in
> mind for any future use.
> 
> kae
> 
> 





More information about the ILUG mailing list