Skip to content

Instantly share code, notes, and snippets.

@samurailink3
Created April 15, 2013 13:59
Show Gist options
  • Save samurailink3/5388253 to your computer and use it in GitHub Desktop.
Save samurailink3/5388253 to your computer and use it in GitHub Desktop.
/etc/passwd example file to disallow interactive logon (Good for FTP servers)
bob:x:0:0:root:/home/bob:/bin/bash
# The above user can log in interactively, and their home folder is in the usual location
alice:x:1000:1000:,,,:/var/www/www.example.com:/bin/false
# The above user can't log in interactively, and their home folder is set to their public website folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment