[CentOS] C5 C6 : useradd

2015-01-24 Thread Always Learning
useradd --help -d, --home-dir HOME_DIR home directory for the new user account -M, do not create user's home directory yet useradd -M -s /sbin/nologin FRED produces in /etc/passwd fred:x:504:504::/home/fred:/sbin/nologin Trying again with useradd -d /dev/null -s

Re: [CentOS] C5 C6 : useradd

2015-01-24 Thread Dennis Jacobfeuerborn
On 25.01.2015 04:54, Always Learning wrote: On Sat, 2015-01-24 at 22:45 -0500, Stephen Harris wrote: On Sun, Jan 25, 2015 at 03:43:06AM +, Always Learning wrote: Should the 'correct' entry be:- fred:x:504:504:::/sbin/nologin ? No; that's invalid. There must be an entry in

Re: [CentOS] C5 C6 : useradd

2015-01-24 Thread Always Learning
On Sun, 2015-01-25 at 04:38 +0100, Dennis Jacobfeuerborn wrote: On 25.01.2015 04:30, Always Learning wrote: useradd --help -d, --home-dir HOME_DIR home directory for the new user account -M, do not create user's home directory yet useradd -M -s /sbin/nologin FRED

Re: [CentOS] C5 C6 : useradd

2015-01-24 Thread Stephen Harris
On Sun, Jan 25, 2015 at 03:43:06AM +, Always Learning wrote: -M, do not create user's home directory so why do I see in /etc/passwd fred:x:504:504::/home/fred:/sbin/nologin -M stops it doing a mkdir to create the actual directory in the filesystem Should the 'correct'

Re: [CentOS] C5 C6 : useradd

2015-01-24 Thread Dennis Jacobfeuerborn
On 25.01.2015 04:30, Always Learning wrote: useradd --help -d, --home-dir HOME_DIR home directory for the new user account -M, do not create user's home directory yet useradd -M -s /sbin/nologin FRED produces in /etc/passwd

Re: [CentOS] C5 C6 : useradd

2015-01-24 Thread Always Learning
On Sat, 2015-01-24 at 22:45 -0500, Stephen Harris wrote: On Sun, Jan 25, 2015 at 03:43:06AM +, Always Learning wrote: Should the 'correct' entry be:- fred:x:504:504:::/sbin/nologin ? No; that's invalid. There must be an entry in the home directory field. Thanks Stephen and

Re: [CentOS] C5 C6 : useradd

2015-01-24 Thread Valeri Galtsev
On Sat, January 24, 2015 9:54 pm, Always Learning wrote: On Sat, 2015-01-24 at 22:45 -0500, Stephen Harris wrote: On Sun, Jan 25, 2015 at 03:43:06AM +, Always Learning wrote: Should the 'correct' entry be:- fred:x:504:504:::/sbin/nologin ? No; that's invalid. There must be