LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-18-2011, 03:56 AM   #1
AirN
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
Not a root user


Hi,

I just installed Ubuntu.
I am unable to access the root folder through the UI or Terminal.
Getting a message - "You do not have the permissions necessary to view the contents of "root"."

I dont have only one user account set up. I tried executing the commands su -i etc but no use. I am still unable to enjoy the privileges of a root user.

Please help!!
Thanks.
 
Old 09-18-2011, 04:00 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
In ubuntu you need to use the sudo command to become root.
Code:
sudo <command>
The password is the password from the user.
https://help.ubuntu.com/community/RootSudo
http://linux.about.com/od/ubuntu_doc/a/ubudg24t4.htm

Kind regards

Last edited by repo; 09-18-2011 at 04:04 AM.
 
Old 09-18-2011, 04:42 AM   #3
jack_green
Member
 
Registered: Jul 2011
Posts: 73

Rep: Reputation: Disabled
Quote:
Originally Posted by AirN View Post
Hi,

I just installed Ubuntu.
I am unable to access the root folder through the UI or Terminal.
Getting a message - "You do not have the permissions necessary to view the contents of "root"."

I dont have only one user account set up. I tried executing the commands su -i etc but no use. I am still unable to enjoy the privileges of a root user.

Please help!!
Thanks.
when you first log in UBUNTU , you should give root user a password. try this command: sudo passwd root
 
Old 09-18-2011, 07:48 AM   #4
Velotrol
LQ Newbie
 
Registered: Apr 2011
Location: Rio, Brazil
Distribution: Gentoo
Posts: 15

Rep: Reputation: Disabled
Or if you don want to change the root password, type `sudo su` and enter your user password for root access.
 
Old 09-18-2011, 11:54 AM   #5
AirN
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you everyone.
Worked using the following commands

1) sudo -i or sudo su - or sudo -s
2) prefixing sudo with the commands that I would like to execute as a root.
 
Old 09-18-2011, 11:31 PM   #6
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
If you want to open the root folder in UI try this
sudo nautilus /root (Assuming you are not using kde)

if you want to open in terminal

sudo -i This will make you root and then you can "cd" to /root
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does have a user in group 'root' all the rights as the user 'root'? thomas2004ch Linux - Newbie 4 08-12-2010 05:18 AM
[SOLVED] DBD::ODBC works as root but not as non-root user on CentOS5 - any ideas? prgupta Red Hat 2 07-13-2010 12:20 AM
How to change a process running in root-user to non-root user ???????????????????? narendra1310 Linux - Software 4 10-29-2009 02:11 AM
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 05:15 PM
why lftp command run failed when user isn't root, but ok when logining as root steven_yu Linux - Software 0 06-06-2007 08:36 PM


All times are GMT -5. The time now is 05:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration