Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why? You don't need to run anything and everything as administrator\root, only things such as installing or upgrading packages, editing config files, etc. Using sudo, then entering your password, before a command seems simple enough to me.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
If you're using Ubuntu, it uses sudo by default and the "root" user account is disabled by default. Therefore as brianL says, you would just put sudo in front of the command you would like to run as "root".
If you're using Ubuntu, it uses sudo by default and the "root" user account is disabled by default. Therefore as brianL says, you would just put sudo in front of the command you would like to run as "root".
eg.
Code:
sudo <name of command here>
Have mercy on me, I am aan an absolute newbie...
I guess what I mean is that I wonder if I don't understand something basic about "root" and "sudo".
Is "root" the "super user" who can do ANYTHING he likes?
In my other thread you can see the issue I unexpectedly encountered: going "gksu nemo" - and still getting message "you don't have permission to do this" (change ownership or permission" https://www.linuxquestions.org/quest...07#post5889707
Cheers!
In Linux, we can change ownership with 'chown' or change permission with 'chmod'. A couple of examples:
To change the file 'foo' to be owned by byebyemrgates:
Code:
sudo chown byebyemrgates foo
To give the file 'foo' read/write permissions for its owner, and read-only permission for everyone else:
Code:
sudo chmod 644 foo
Simple enough?
However a warning that changing file ownership and permission is rarely a good idea. I work in IT, and almost every day, I see at least one problem caused by wrong permissions. I noticed in your other thread you are asking for help extracting photos from your camera. If you change the permissions/ownership on the camera's storage, it might affect the camera's ability to read those files. I suggest, rather, that you follow along with @michaelk's advice in your other thread. He is a knowledgeable user and will talk you through the problem. Don't do anything hasty!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.