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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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:
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)?