LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Gaining access to directory files (https://www.linuxquestions.org/questions/linux-newbie-8/gaining-access-to-directory-files-548155/)

jacatone 04-22-2007 05:53 PM

Gaining access to directory files
 
I'm trying to fix a connection problem in Kubuntu 6.06 and KDE. When I try adding a file to say /dev/ or /usr/ through Konqueror it keeps telling I don't have permission. How would I gain permission while in Konqueror? If I have to use a command line, I know how to become root but how would I add a file to a directory? Thanks.

vxc69 04-22-2007 06:22 PM

Using the terminal you can use cp to copy a file or mv to move a file. I'm not sure why you would want to move something to /dev.

Also press Alt+F2 on kde to get the run dialog, then enter kdesu konqueror to run konqueror as root.


Cheers,
vxc

sumguy231 04-22-2007 06:54 PM

By the way, to make an empty file on the command line you can use the 'touch' command or use the nano text editor to make a new text file. If you need to copy a file from one place to the other, use 'cp' and if you need to move a file use 'mv'.

jacatone 04-23-2007 12:25 AM

I just need permission to access any of the directory files. If I open Properties, everything's grayed out. I can't read, write of do anything with them. I just keep getting "Permission denied". I'll try the keyboard shortcut for Konqueror.

sumguy231 04-24-2007 09:58 PM

Right, you need to be root to change the permissions too. Alt+F2 isn't a shortcut to Konqueror, it just opens the Run dialog. You need to open Konqueror with kdesu so that it runs with root permissions.

jacatone 04-25-2007 02:10 AM

Seems even when I do that, the Permissions in the directory files are still greyed out no way for me to work with them.:scratch:

reddazz 04-25-2007 02:27 AM

Since you are using Kubuntu, you can do something like
Code:

$sudo cp somefile1 /some/path/somefile1

pixellany 04-25-2007 01:20 PM

Changing file ownership and permissions is much easier with a terminal. look at "man chown"and "man chmod"


All times are GMT -5. The time now is 10:19 PM.