LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Stuck! No permission to copy files?? (https://www.linuxquestions.org/questions/linux-newbie-8/stuck-no-permission-to-copy-files-356601/)

the shady one 08-24-2005 03:25 PM

Stuck! No permission to copy files??
 
Hi all

I expect this is really basic so please bear with me! Have installed Mandake 10.1 with KDE and am unable to get online thru linux, so have to reboot to XP every time I need to read the forums for an answer... kind of frustrating!

Trying to learn the basics of Konsole - can at least change dir etc now,

My problem is I'm unable to copy files I need to get my USB ADSL modem running. If I try through the GUI (konquerer) I get 'access denied', you do not have permission or some such. If I then logon as su through the command line and try again in the GUI, get the same message 'access denied'. If I logon as su in konsole does this mean I have root privileges in the graphical environment??? seems not!

Have also tried to copy in konsole, but can't find a copy command??
Have tried cd'ing to the destination dir and pasting, but get 'permission denied', even logged in as root???

If you've got this far thamks for reading!!
Any help appreciated, i'm sure it's really obvious!
cheers:confused:

comprookie2000 08-24-2005 03:34 PM

You should be able to log in as root su or su -
password
cp /this/is/a/file.txt /usr/src/linux
what this does is copy's /this/is/a/file.txt to the /usr/src/linux directory
man cp for more info
also you can move files with mv
again man mv for more info
hang in there it will get easier, just takes a little practice and alot of reading

bosewicht 08-24-2005 03:35 PM

if you su in a terminal, you are only root in that terminal for that session. if you type exit or close the terminal, you lose the su privledges. To copy in a terminal, type

cp /<location>/<of>/ <file> /<where>/<you>/<want>/<it>

What are you trying to copy?

tkedwards 08-24-2005 06:24 PM

Generally you use su (and sudo also but that's slightly different) when you want to run command line programs as a different user. You can often start GUI programs (eg. konqueror) from the command line after you've used su.

However the recommended way to start a GUI program like konqueror as a different user is to click Menu->Run Command, then in the dialog that comes up click options, 'Run as a different user' and put in the username and password, then type the name of the program you want to run (eg. konqueror) for 'Command:'.


All times are GMT -5. The time now is 05:26 AM.