Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-01-2006, 11:30 AM   #1
Registered: Aug 2006
Posts: 35

Rep: Reputation: 15
root help!

Hi, during an installation that i did a locked folder was created on my desktop and i can't get rid of it cause it say that needs necessary permision that i don't have. Also my external hard drive and my usb stick are found by the os(ubuntu) but i can't mount them. What is wrong? Do i have to become root? If yes how? I only know how to become root from terminal(but i don't want to use terminal all the time).
Old 10-01-2006, 01:14 PM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You need to use terminal to become root, unless you're using gksudo or some other graphical sudo-app, since the other way would be to do a graphical login as root, which is definitely a bad idea.

What you will want to do, anyway, is to use console and sudo (on Ubuntu the root account is locked at first; to unlock, use sudo passwd root and give root some password only you know) to alter the mount-rights; you could edit your /etc/fstab for example (the usb-stick problem) and add to the options part this:


which lets every user use the device.

For a locked file, change it's ownership to whoever user you use, and make sure it has at least read permissions (chmod +r filename).
Old 10-01-2006, 03:33 PM   #3
Registered: Aug 2006
Posts: 35

Original Poster
Rep: Reputation: 15
Can you be more detailed on how can i do this please?
Old 10-01-2006, 04:04 PM   #4
Registered: Jul 2006
Location: Lubbock, Tx.
Distribution: Ubuntu Dapper Drake
Posts: 184

Rep: Reputation: 30
let's see if i can help. go to applications>accessories>terminal at the terminal type sudo sh hit enter.
cd to where the file is located and type: chmod +r the locked filename hit enter.

still as root, open type gedit hit enter. pull up the /etc/fstab file and edit umask=022 save it and exit.

that should fix your problem. i believe. if i'm wrong b0uncer please correct me.
ubuntu has no root account per se. you have to sudo for the root account and enter your password. which is generally the one you set up with your login during install. hope this helps.
Old 10-02-2006, 08:14 AM   #5
Registered: Aug 2006
Posts: 35

Original Poster
Rep: Reputation: 15
Yea that helped a little, but not entirly. With chmod +r or chmod o+rwx i could unlock the folder but then the subfolders locked and now i have to unlock every one of them manually. When i unlock the folder the subfoldes were locked but the files not. I could delete the files. So, is there any command that could unlock the folder and everything inside it?
Old 10-02-2006, 08:21 AM   #6
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
What exactly is the foldeR? if it's owned by root it may have some sort of importance... i wouldn't go removing it without knowing what it is...

if you wanted to delete the folder et all you could do
sudo rm -rvi ~/Desktop/<folder>/

Last edited by ethics; 10-02-2006 at 03:40 PM.
Old 10-02-2006, 11:17 AM   #7
Registered: Aug 2006
Posts: 35

Original Poster
Rep: Reputation: 15
It tells that, rm: descend into directory and here we go again. I think there is command something like sudo rmdir --ignore.. that removes a folder ignoring if it is not empty. Does anybody know that command? Or can you point me where the mistake is (rm: descend into directory)?
Old 10-02-2006, 12:12 PM   #8
Registered: May 2005
Distribution: Slack, FreeBSD,NetBSD, OpenBSD, Open Solaris, Minix
Posts: 172

Rep: Reputation: 30
rm -r From man rm:

-r, -R, --recursive
remove the contents of directories recursively
Old 10-03-2006, 08:56 AM   #9
Registered: Aug 2006
Posts: 35

Original Poster
Rep: Reputation: 15
Finally after so many hours of strugling this actually worked!! Thanks so much!!


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
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 09:32 AM
Boot Error: Root file system /dev/root adtomar Linux - Networking 0 12-27-2004 11:50 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 05:14 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM
cant resize root thru rescue, auto mounts root dir absolutal Linux - Newbie 0 06-18-2003 04:06 PM > Forums > Linux Forums > Linux - Newbie

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

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