linux user levels?
Hi. I want to make a sandbox-user for network apps just for some more security. However I have 2 issues. Just like root is above all other normal users, I want to have my user above sandbox user, so I don't have to type password when I su as him. Are there user levels or something like that in linux?
Second minor problem is when I run iceweasel as sandbox user I get warning: "owner of /tmp/orbit-user is not the current user" The browser runs however, I don't know if this warn is important. I'm running Debian Squeeze. |
Quote:
What you probably can do instead is install sudo and set it up so that your user can run commands as the sandbox user without entering a password. Not sure of the exact syntax, you'll want to read up on sudo. Quote:
|
But how can I do this? I mean sudo as sandbox user w/o password and not sudo as root w/o password.
Btw Is there a way to pass password automatically in a bash script to su? Edit: I can't use sudo as X doesn't work properly even in gksudo it throws me an error. I have to do it with su (or rather sux). It works perfectly with sux but how do I pass password automatically? |
Quote:
Quote:
Quote:
If you want it to be reasonably secure, let's fix the problem with X and sudo. Probably running "xhost +local:''" before the sudo command is all you need to do. |
Quote:
Exp: allow all su command for user: your_user ALL=(ALL) NOPASSWD:ALL In your shell script : su <your_user> -c "your shell command" |
Quote:
|
All times are GMT -5. The time now is 03:49 PM. |