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
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
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
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'
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
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
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
7 matches
Mail list logo