LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   to gain write access in root folder (https://www.linuxquestions.org/questions/linux-newbie-8/to-gain-write-access-in-root-folder-898281/)

ayush15690 08-19-2011 08:56 AM

to gain write access in root folder
 
hi
i am using ubuntu 11.04 ,but when i try to save a file to root folder i don't have permission for that.
Basically when i try to access the root through terminal it asks for a password which i don't know ,so how can i know that password.

repo 08-19-2011 08:57 AM

The password is your users password.

Kind regards

ayush15690 08-19-2011 08:59 AM

Quote:

Originally Posted by repo (Post 4447732)
The password is your users password.

Kind regards

i already tried that but it didn't accept that.
i tried this command to access root $su -.

repo 08-19-2011 09:06 AM

Try
Code:

sudo
More info:
https://help.ubuntu.com/community/RootSudo

Kind regards

ayush15690 08-19-2011 09:23 AM

thanks

repo 08-19-2011 09:35 AM

No problem, please mark the thread solved using the thread tools.

Kind regards

sundialsvcs 08-19-2011 03:26 PM

And if you want further advice on how to blow your system's head off, through the careless use of super-power, feel free to inquire further. (What's an ordinary user doing on the "sudoers" list, anyhow?)

MTK358 08-19-2011 06:10 PM

Quote:

Originally Posted by sundialsvcs (Post 4448044)
What's an ordinary user doing on the "sudoers" list, anyhow?

So that the user can run commands as root, obviously. What do you think sudo is for?

chrism01 08-19-2011 09:43 PM

According to some of the posts I've read, Ubuntu creates a random secret passwd for root and automatically creates the first std user with full rights via sudo ... yeah it's dumb/non-std, but that's what they do (or did..).

jakethedog 08-20-2011 06:18 AM

I Know this is solved but here is an easier way.
Open Terminal and type in
sudo nautilus (Location of your folder)

For Example: sudo nautilus /bin/


All times are GMT -5. The time now is 04:08 AM.