LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-18-2009, 08:47 AM   #1
Bjornmagne
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 0
Can not move files to root files in kubuntu 9.04.


Being relatively new both to Linux and this forum, i am sorry if i make a post that already is, evn though i couldn`t find it.

My problem is i can`t move downloaded files over to root filesystem, i have downloaded and unpacked them to files.
To use a more direct problem, i downloaded aMSN, i wanted to change it`s looks and downloaded a skin, i open root, go to usr---> amsn ---> share --> skins, now i am to copy the file of the skin over to the root directory, but i keep getting a error message saying i have no authorisation, what am i doing wrong ?

I also tried alt+f2, writing sudo conqueror, as an advice i got, but there was noe difference..
Please help me on this one guys, thanks in advance.
 
Old 08-18-2009, 09:18 AM   #2
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
Quote:
Bjornmagne

but i keep getting a error message saying i have no authorisation, what am i doing wrong ?
If it's telling you you don't have authority then you need to be root to copy the file to that directory. If you are using one of the Ubuntu's prefix the cp command with sudo.

sudo cp <filename> /path/to/directory/for/<filename>

That would be if you are already in the directory that contains the file/s you want to copy. With other distros you can also su to root then copy the files over. Also make sure of your syntax linux is case sensitive, so cp file and cp File are two different things.

Hope that helps
 
Old 08-18-2009, 09:53 AM   #3
Bjornmagne
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mrrangerman View Post
If it's telling you you don't have authority then you need to be root to copy the file to that directory. If you are using one of the Ubuntu's prefix the cp command with sudo.

sudo cp <filename> /path/to/directory/for/<filename>

That would be if you are already in the directory that contains the file/s you want to copy. With other distros you can also su to root then copy the files over. Also make sure of your syntax linux is case sensitive, so cp file and cp File are two different things.

Hope that helps
Now i got this message: "bash: syntax error near unexpected token `newline'" in the terminal.
I haven really gotten to know the terminal good enough, i had ubuntu 8.10 last year, but i never had the need for using it, so to be honest, i don`t think i have used the terminal more than ten times, if so many...
And yes, i downloaded the kubuntu prefix from their homepage.
 
Old 08-18-2009, 09:57 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Now i got this message: "bash: syntax error near unexpected token `newline'" in the terminal.
Please post what you typed in the terminal to generate this error.
 
Old 08-18-2009, 10:27 AM   #5
Bjornmagne
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
Please post what you typed in the terminal to generate this error.
This is what i typed: sudo cp <Dark_Matter-1.0 /path/to/directory/for/<skins>

i also tried this one: sudo cp <Dark_Matter-1.0 /path/to/directory/for/<amsn>
 
Old 08-18-2009, 10:36 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You need to replace
Quote:
/path/to/directory/for/<skins>
with the path to the directory
lets say the directory where you want to copy the files to is
Quote:
/usr/asmn/share/skins
then you type
Code:
sudo cp Dark_Matter-1.0 /usr/asmn/share/skins
If Dark_Matter-1.0 is a directory you need to type
Code:
sudo cp -R Dark_Matter-1.0 /usr/asmn/share/skins
To copy the directory and all the files in it.
 
Old 08-18-2009, 10:55 AM   #7
Bjornmagne
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
You need to replace

with the path to the directory
lets say the directory where you want to copy the files to is

then you type
Code:
sudo cp Dark_Matter-1.0 /usr/asmn/share/skins
If Dark_Matter-1.0 is a directory you need to type
Code:
sudo cp -R Dark_Matter-1.0 /usr/asmn/share/skins
To copy the directory and all the files in it.
I get the feeling something is really wrong here, now i tried that one to, and i got the "no such file or directory" note, even though i can sit here looking at Dolphin seeing it`s there.
It seems like no matter what i do, it won`t let me go root
 
Old 08-18-2009, 11:04 AM   #8
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Bjornmagne,

You don't have the copy the brace "<" this is not important.
What mrrangerman meant was simply to substitute <this contents> with that yours without this " < " and without this " > " at the tail.

sudo cp Dark_Matter-1.0 /home

you will need to type in the password for the root after hitting <Enter> key to confirm your authority otherwise the command will not be executed.

In that example I have given you, the Dark_Matter-1.0 file shall be copied to the folder named /home. So after copying it you will need "cd" command to go to /home folder and find out if it is there.

Also, in order to succeed the above command you should be located at the folder where Dark_Matter-1.0 is located, otherwise the command will return "no file no folder" and it cannot execute for you.

To go to a folder you will need "cd" command. Example: cd /home/downloads this will take you to the /home/downloads folder.

To see if the file is there, you will use the " ls " command. Example: ls -l this will give you long listing of all regular files within the folder.

It pays to read a good tutorial. Use google to find webpages offering tutorials.

hope this helps.

good luck.
 
Old 08-18-2009, 11:12 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
I get the feeling something is really wrong here, now i tried that one to, and i got the "no such file or directory" note, even though i can sit here looking at Dolphin seeing it`s there.
Where you are sitting, type
Code:
ls
do you see the file?
you need to give the whole path to the file, or change to directory where the file is.
If the file is at your desktop
type
Code:
cd Desktop
 
Old 08-18-2009, 12:02 PM   #10
Bjornmagne
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
Where you are sitting, type
Code:
ls
do you see the file?
you need to give the whole path to the file, or change to directory where the file is.
If the file is at your desktop
type
Code:
cd Desktop
Yes, i could see the file, placed at amsn_received.
i typed cd amsn received, then i got this note: bjrn@bjrnlaptop:~/amsn_received$
 
Old 08-18-2009, 12:11 PM   #11
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Bjornmagne,

Quote:
"I also tried alt+f2, writing sudo conqueror, as an advice i got, but there was noe difference..
"

It is becoming clear that you are not working as "root" user. IF you want complete freedom run as root user:

sudo -i
(then enter the root password when you are prompted)

Being root you can copy anything to anywhere, but be careful, root user account is reserved to users "who know what he is doing" otherwise you'd commit accidental damage to system files.

It pays a lot to get familiar with basic linux commands, so give time to read tutorial, there's one downloadable hereunder my signature. or you can go to this page: http://www.hscripts.com/tutorials/li...ands/index.php and get familiar with basic terminal commands.

What makes your simple problem very hard for us to help you solve is actually, WE DON'T KNOW ENOUGH WHERE WHICH FOLDER YOU ARE ON and also it seems difficult for you to know either. So having a little workable knowledge on LInux file system and basic commands can greatly help you and us in helping you.

Hope this helps.

Good luck and be careful using root account.
 
Old 08-18-2009, 12:25 PM   #12
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
i typed cd amsn received, then i got this note: bjrn@bjrnlaptop:~/amsn_received$
no type
Code:
sudo cp filename /path_to_where_you_want_to_put_the_file
 
Old 08-18-2009, 01:08 PM   #13
Bjornmagne
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
no type
Code:
sudo cp filename /path_to_where_you_want_to_put_the_file
It still doesn`t happen anything, i get this message: cp: hopper over katalogen «Dark_Matter-1.0», which wil be translated to something like skipping the catalog..etc
 
Old 08-18-2009, 01:10 PM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
If you want to copy the whole directory use
Code:
cp -R
if you want to copy only certain files, first type
Code:
cd Dark_Matter-1.0
Then copy the files you need
 
Old 08-18-2009, 01:16 PM   #15
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
what about trying the tab completion?? after typing one or two letters of the directory.press tab. bash will complete the rest for you..then do as Repo says.
 
  


Reply



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
Cannot su to root successfully / Cannot copy/move *.bz2 files from Sosreport jbottiger Linux - Newbie 17 02-06-2009 09:28 AM
moving files from a location to other, preventing to move incomplete files pogo123 Programming 8 11-14-2008 06:21 AM
moving files from a location to other, preventing to move incomplete files pogo123 Linux - Newbie 2 11-13-2008 01:57 PM
On NFS, non-root users can move/rename files belonging to root. Stuart Morrow Linux - Server 2 11-05-2007 11:12 AM
How do I move files without overwrite exitng files? nadavvin Linux - General 10 11-03-2006 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:05 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
Open Source Consulting | Domain Registration