2
votes
3answers
222 views

How to login as root from Bash and do stuff

This is my simple bash: cat test.sh #!/bin/bash echo "hello" su - root -c /path/to/script.sh <<EOF password EOF whoami echo "good bye" But I get this error: ...
5
votes
1answer
80 views

`su` for the OS X GUI

With OS X I wan the ability to log in to the computer as admin but set myself to another user on the system so I'm working on their profile with their privs, see all their settings, files, and run ...
1
vote
1answer
273 views

Autologout after logging in

I have a Ubuntu 10.04 LTS server. I'm currently logged in as root, because I suddenly cannot log into my account anymore. When I execute su useraccount, nothing happens. The log file auth.log ...
1
vote
2answers
225 views

Best way to store root passwords

I have over ten web servers to manage and configure, with each server having its own root user and password. I have to maintain a database of all the root passwords on my development machine, but I ...