no permission to do anything and no root access

Asked by fuz

I am a new user to the ubuntu desktop.

i need to know how to gain access as a "root" user (not the sudo command) and yes i am aware of the risk of using root.
but i want it to resolve a few issues im having as i am not comfortable typing miles of command in a terminal window trying to fix my issues.

some of the issues are :

 logged in as a normal user i cannot edit/save any files or folders.
i keep getting a permission denied message whenever i try.

ive tried a terminal window & gedit also, to save files and no luck it does nothing. even visudio will not save files.
using visudio i can edit a file but it refuses to save it.

ive tried setting password for root, it succeeds but then nothing.

i have no admin accounts and have no access to add groups.

when i first boot ubuntu my login screen only shows the normal user name and password, no other, no root no nothing.
aside from removing this ubuntu version and claiming it a loss cause what else can i do.

options are limited.

this is ubuntu-12.04.1-desktop-i386 iso used in vbox.

fuz

Question information

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

If you need admin power, prefix your command with:

sudo

eg:

sudo apt-get update

Use your login password as authentication. If you are running a graphical app then use gksudo. Eg:

gksudo gedit /etc/default/grub

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

You have that with sudo. The use of sudo is a good idea and it stops you loogin in to the GUI as root. If you do log in to the GUI as root then ALL Your applications (even web browsers) will run as root, any malicious software and scripts will also get this access and can do all manner of things to your OS. If you use the OS properly (as user) then the access is restricted greatly and you will have fewer issues. This is why idiot Windows users who log in as 'administrator' to check emails and play games get issues, all the viruses and so forth have completely unprecedented access.

If you think the use of sudo should not be used because you are the only user of the OS then you should use the sudo method as you clearly have litle knowledge of what logging in as root actually implies and does to the OS.

It's not supported and simply not needed. I have given the methods of getting 100% access to the files using sudo. This will keep the admin access low and your system safe. If you want a root terminal where you will not be asked for your password repeatedly (incidentally, sudo has a 10 minute grace period) then simply run:

sudo -i

and you can run:

exit to end it.

If the files you are accessing are owned by root, then you can mount it differently to give access to other users and so forth. Sounds like an issue with either what you are sharing or how you are mounting the share.

Revision history for this message
Warren Hill (warren-hill) said :
#5

If you really need to become root then all you need to do give root a password. I will give you the command but strongly recommend you don't use it. There are very good reasons why Ubuntu has locked the root account by default.

if all you want to run the file manager as root then press ALT+F2 to open the run box and enter

---------------------------------
gksudo nautilus
--------------------------------

You are now a super user inside the file manager and can make the changes you want.

if you really want to be root however enter

-------------------------------------
sudo passwd root
-------------------------------------
then set a password

You can now log out and back in as root

and enter a password

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

You can change access using:

sudo chmod SOMETHING /path/to/folder

or

sudo chown /path/to/folder

You DON'T need to set the root password and it is not advised or supported.

Revision history for this message
fuz (sptrash-1) said :
#8

I was able to resolve my own issues by dumping the gnome desktop stuff and going with KDE stuff.
better options to manage settings. thanks anyway

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

You clearly have little appreciation of security in your OSes.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#10

I suggest reading these guides:

https://help.ubuntu.com/community/ExternalGuides

Revision history for this message
William Haig (w-m-haig) said :
#11

I have downloaded a file and it was saved in ROOT file however I cannot access it there is three files in the file system file manager with a large X accross them they are LOST+FOUND, ROOT,and VMLINUZ the file is in there but can't access because when I try a second download the computer states file already exists do you want to overwright. The file system has been like this since I installed Ubuntu I also keep getting after each boot of ubuntu a message stating an app has crashenow or in the past click for details after click no details shown and message gone