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.
I have some directories whose owner is root. When I enter the GUI (KDE) I always do it as normal user john. But then, when I want to copy a file to some of root's dirs, I get an "Access denied" notification. To be sincere, these dirs are in a window$ vfat partition and I can neither change the ownership nor the permissions.
So what I do is to switch to a root console and painstakingly type the whole path of both source and destination, with the help, of course, of tab completion. To su to root, copy the file and exit to john would be much more comfortable. But I don't know how to do it. If I do K Menu>Run Command and type 'su root' nothing happens. I would appreciate any suggestion. Regards.
1) Remount the device to give you the appropriate permissions. FAT and NTFS don't support unix permissions natively, so they are simulated during mount with the options umask, dmask, uid, and gid. See "man mount" for details, or search google.
2) Set up sudo to allow you to perform the actions you want. That's what it was made for, to give a user the temporary permission to perform some action as another user, particularly root. Again, see "man sudo" or google it.
@BrianL: I had unmounted the partition and had forgotten to remount it.
I tried David the H.'s solution 1) and it worked. The other solutions have the advantage that the umask and uid are managed by the soft which, sure enough, will be wiser than me. Either way, I have plenty of time to decide in favor of this or the other solution.
@MTK358: I never could mount the partitions from within the GUI, except by opening a terminal within it.