I've read somewhere (no reference, unfortunately) that I could use
I wonder if I should do this in my jails.
I am not so sure what it means: "not having a password". I hope this is "preventing anyone to
Anyhow, if I execute
And I checked that it doesn't prevent me, from the host, to log in via
Questions:
- Is it at all necessary to enter this exclamation mark? Is actually
- Is it improving security to lock root account in a jail? As I guess the answer may be "it depends", I must precise: I have jails that run websites, but there's no direct external access to them,
vipw to edit /etc/master.passwd and put an exclamation mark in the root line to prevent root from having a password. Like so:
Rich (BB code):
root:!:0:0::0:0:Charlie &:/root:/bin/csh
I wonder if I should do this in my jails.
I am not so sure what it means: "not having a password". I hope this is "preventing anyone to
su to root" and not "root's password will remain empty". This thread on stack exchange tends to confirm this, but this is a linux tagged topic.Anyhow, if I execute
pw lock root then root's line reads:
Rich (BB code):
root:*LOCKED*!:0:0::0:0:Charlie &:/root:/bin/csh
ezjail-admin console mywebjail.Questions:
- Is it at all necessary to enter this exclamation mark? Is actually
pw lock root the correct (and only/recommended) way to do this?- Is it improving security to lock root account in a jail? As I guess the answer may be "it depends", I must precise: I have jails that run websites, but there's no direct external access to them,
pf only redirects http requests to them, and they answer, that's all (no ssh). The main problem I can think of could come from misconfigured or not updated website's framework that would leave a door open. Plus one jail running a sftp server. Users can access it via ssh but cannot login to a shell, they only get ftp over ssh.