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.
Hi:
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.
Thanks. It does not work. Still Konqueror refuses to write root's dirs. Furthermore, when I go to the FAT partition, the window appears empty. Regards.
@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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.