Maximizing user permissions
I am learning/experimenting with debian. My computer is a standalone home desktop which is only used for internet. Accordingly, I'd like as many user permissions as I can give myself to avoid having to logout and login as root every time I want to do something. I've given myself "permission" to view logs by adding myself to an "admn" (or something like that) group. Are there other ways to maximise my user permissions?
Also, I can use the root terminal, but my knowledge of how to do things using the command line is limited. The only way I know how to do things that need root is to log in as root, but is there a way to elevate yourself to root and use the gui tools without logging out as user and logging in as root? Thanks |
root is a single number - 0. It is implemented in the *nix kernel. If a process' user ID is 0, it is not restricted from performing operations as are non-0 UID processes. Its that simple.
You do not need to exit a given environment to temporarily elevate privileges. What you are essentially doing by changing your permissions everywhere is defeating the entire purpose of those permissions and security. In such as case, you might as well become root and stay that way. What types of operations are you performing, that you feel you need to login/logoff ? |
You shouldn't be running as root anyway. Don't log in and out. Debian uses sudo, to run a program such as Synaptic Package Manger or similar, just do a:
Code:
sudo synaptic Code:
you@hostname$ su #enter root password |
Quote:
Quote:
|
As others have suggested, use sudo or su. You can run any program you want with elevated privs; no log on/off required.
There are years of wisdom behind the decisions made on file permissions. Don't change your log permissions - instead learn about groups. Add your user id to the group that owns logs. See /etc/group. |
All times are GMT -5. The time now is 08:10 PM. |