Linux tech
Saturday, February 11, 2012
Restrict the user his home dir at ssh login
1. make a copy of bash with the name of rbash
#cp /bin/bash /bin/rbash
2. Add the user with rbash
[#useradd -s /bin/rbash
]
#useradd -s /bin/rbash admin
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment