Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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).
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:
umask=022
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).
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.
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?
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)?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.