Could someone please explain to me how I can create a user account in RP with restricted access?
The user should only be allowed to add/remove files/directories in their account, and not be allowed to enter anything except their home account.
OK. Basically, this should get you close:I ssh into my RP, and I don't use any GUI. So it have to be done from terminal.
Code: Select all
man adduserIn what sense is it "restricted"?RaTTuS wrote:ssh into RPI
sudo adduser newbie
give password
exit
ssh newbie@RPI
you have now got a restricted account
I do not see that in my man page, but it is correct. With rbash in /etc/shells, nothing prevents the user from "chsh -s /bin/bash" again.Joe Schmoe wrote:P.S. "man adduser" says that /bin/rbash shouldn't be in /etc/shells, but (at least on my Pi), it is.
Code: Select all
perl -e'exec bash'Evidently I was not clear. I did not say it could not be done.Joe Schmoe wrote:You are completely wrong about this. It can be done, and it has been done.
you cannot sudoSinopa wrote:I have no idea. Tried it, and it was everything but restricted.
I disagree. They can run a lot of programs that would make a Windows admin freak out but in the end most everything important is owned by root or at the very least, another user.Joe Schmoe wrote:Unix, by its nature, is a pretty open system. Unlike (classical) IBM OSes, its motto is "that which is not specifically prohibited is permitted" (rather than the converse).
So, a non-root user can often do a lot of damage (even without any special privs) ...
I don't think any current consumer OS is much different in this respect.Joe Schmoe wrote: So, a non-root user can often do a lot of damage (even without any special privs) ...