wont give me admin

Asked by Ronald Lewis

i cant add stuff to folder to root because i dont have permission,
i am the only one on this comp and have it setup that way,
how do i give myself admin rights??

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You already have them, youu just need to know how to access them. In Ubuntu you are a user which is what you should be. However, you are a member of a group called Admin which gives you access to sudo and gksudo and kdesu, these allow you to access folder and actions which normal users cannot do for one shot. This whole thing keeps your system VERY secure. Windows on the other hand gives everything Admin right so your web browser under windows has admin rights. This also gives any nasties online free reign over your system to do whatever it wants and cause a lot of bother.

If you want to put a file in a folder you do not have access to you have 2 options:

GUI:
run: gksudo nautilus or kdesu dolphin
and you will have a graphical file browser running with elevated access, be VERY careful here as you are unrestricted with your access and you CAN screw your OS up. Keep use to the BARE MINIMUM.

CLI:
use:
sudo cp file /path/to/folder
this will put file in folder (using my example above). You can adjust this as you need but this will give cp the extra admin power it needs to copy whatever it is to wherever you wish.

Revision history for this message
Gary M (garym) said :
#2

If you're doing this via gnome's nautilus file manager, I find it useful to install nautilus-gksu which adds an open-as-admin option to the context menus.

To run any gnome app with "admin" rights, I press Alt-F2 (or use a terminal session) and run "gksu" or "gksudo".

Or, for a command-line interface, prefix your commands with "sudo", or use "su". The "man" pages have a _lot_ more detail on these commands.

Alternatively, are you sure that root is the best place to add a folder ?

Can you help with this problem?

Provide an answer of your own, or ask Ronald Lewis for more information if necessary.

To post a message you must log in.