LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 07-19-2010, 07:11 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,265

Rep: Reputation: 49
KDE - copying to root folders.


Linux kernel 2.6, slackware 12.0
KDE 3.5.7

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.

Last edited by stf92; 07-19-2010 at 07:13 AM.
 
Old 07-19-2010, 07:21 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
You have two basic options.

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.
 
1 members found this post helpful.
Old 07-19-2010, 07:30 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,265

Original Poster
Rep: Reputation: 49
Thanks. I think I'll use the first option, because I want to be able to use Edit>Copy/Paste in KDE's file manager. Regards.
 
Old 07-19-2010, 07:41 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,134
Blog Entries: 52

Rep: Reputation: Disabled
Try this:
Code:
kdesu konqueror
 
Old 07-19-2010, 08:05 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,265

Original Poster
Rep: Reputation: 49
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.
 
Old 07-19-2010, 09:00 AM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
Try mounting the partition within the GUI file manager. It should mount it as accessible by you.
 
Old 07-19-2010, 12:00 PM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,265

Original Poster
Rep: Reputation: 49
@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.

Thanks and regards.
 
  


Reply

Tags
kde, su


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
Copying folders and the files in them SP7 Linux - Software 1 01-26-2010 05:47 AM
How to compare two folders and synconzie them by copying it Drigo Linux - Newbie 3 11-14-2009 09:15 PM
cp not copying all folders from hdb1 to hdd1 gonus Linux - Desktop 4 02-05-2007 07:29 PM
copying folders with spaces between? flamesrock Linux - Software 3 03-13-2004 02:49 PM
Copying complete folders cipher_arg Linux - General 2 12-17-2002 06:53 PM


All times are GMT -5. The time now is 09:56 PM.

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