PDA

View Full Version : [ubuntu] hey, how d i get *real* root privilege?



pablolie
August 24th, 2008, 02:13 AM
i need to make changes to a file in the etc folder.

ubuntu won't let me.

i installed it. my user is an administrator. i do not have permission to the etc folder, even though i changed my user to be root group?

all i need to do is add a file, and i can't. frustrating!

damis648
August 24th, 2008, 02:15 AM
You must ACTUALLY be root\run the program as root. In a terminal, type

gksudo nautilus
and enter. This is why Ubuntu is so secure, normal accounts are unprivileged in many ways. Only root can do administrative tasks, so a virus as a normal user couldn't do much damage. As opposed to Windows, whereas anything an be modified by any program. That is how viruses get in. Good luck!

Make sure you know what you are doing!

zamadatix
August 24th, 2008, 02:16 AM
same thing i need access to a folder and did thatand certantly dont want to go through terminal every time thoough i think thats the only way.

Diabolis
August 24th, 2008, 02:16 AM
From the command line use the mv command with root privileges(sudo).

Lets say that you have a file here: /home/username/myfile and that you want to move it to the /etc folder. You would have to execute this command:

sudo mv /home/username/myfile /etc

Rocket2DMn
August 24th, 2008, 02:18 AM
We don't teach people how to truly use the root login since this ia a major security problem. See here for a more detailed explanation of our policy - http://ubuntuforums.org/showthread.php?t=765414
Use sudo and graphical sudo!

Diabolis
August 24th, 2008, 02:19 AM
same thing i need access to a folder and did thatand certantly dont want to go through terminal every time thoough i think thats the only way.

As mentioned above, you can open a nautilus window with root permissions too. I don't recommend doing this as its easier to commit a mistake and cause serious damage to your system. The command line is a lot safer, plus it makes you look like a hacker ;).

pablolie
August 24th, 2008, 02:26 AM
thanks a lot - that did the trick and made it easy.

i utterly appreciate ununtu's security and strict rights policy, and think this is a very workable compromise, once you know it. it is the first time i have needed it in 6 months of ubuntu use, which is a testament to its everyday usability for the vast majority of tasks.

zamadatix
August 24th, 2008, 02:28 AM
im not ot worried abotu lloking like a hacker in my room ;) but is there any way to just login from the login screen as root? (could i type username as rot and my pass for the pass?)

Shippou
August 24th, 2008, 02:29 AM
Speaking of root permissions, Mint Elyssa is different: after installation and the first time you log in, it asks you two questions. The first question is... guess what?

See the picture uploaded below.

Diabolis
August 24th, 2008, 02:29 AM
Again, it is not recommended to use su. You don't really need to use it.

damis648
August 24th, 2008, 02:30 AM
im not ot worried abotu lloking like a hacker in my room ;) but is there any way to just login from the login screen as root? (could i type username as rot and my pass for the pass?)

As good forum advisors, we cannot provide such information... it is too dangerous.

damis648
August 24th, 2008, 02:32 AM
Speaking of root permissions, Mint Elyssa is different: after installation and the first time you log in, it asks you two questions. The first question is... guess what?

See the picture uploaded below.

Ubuntu, though, sets a randomly generated password for root.

dje
August 24th, 2008, 02:34 AM
just thought id post a link to this (http://ubuntuforums.org/showthread.php?t=765414), the forum policy on "login as root" tutorials ;)

dje

zamadatix
August 24th, 2008, 02:34 AM
...so obviously there is a way... anyone who is not admin know?

Rocket2DMn
August 24th, 2008, 02:35 AM
I am closing this thread because it is asking how to do something that we don't allow, and people are ACTUALLY telling despite the forum policy which I ALREADY mentioned - http://ubuntuforums.org/showthread.php?t=765414