LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-07-2004, 08:34 PM   #1
Cyberian
Member
 
Registered: May 2004
Distribution: SuSE
Posts: 117

Rep: Reputation: 15
How do I copy a file into root?


I am trying to install a skin for xmms.
 
Old 07-07-2004, 08:46 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
If you mean, to copy a file to root dir, you have to be root.
But I believe there's another way to install a skin for xmms. Can't you install it locally?
 
Old 07-08-2004, 12:25 AM   #3
Cyberian
Member
 
Registered: May 2004
Distribution: SuSE
Posts: 117

Original Poster
Rep: Reputation: 15
How do I be root then?

I do not know how to install it locally. The only thing I know how to install is RPMs, with the aid of YaST2. I am an ultra-newbie.
 
Old 07-08-2004, 12:53 PM   #4
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
what distro is it?

To be root you can open a console and type: su
Linux will prompt you for the root password, so you have to know it.

See, to install programs you have to be the admin person, on the machine, otherwise linux won't let you do it. Its part of the security policy in linux. In can seem a bit annoying, in the begining, but once you get used ot it... And these policies regarding permissions are responsible for a great deal of the system's reliability.

Last edited by bruno buys; 07-08-2004 at 12:57 PM.
 
Old 07-08-2004, 02:42 PM   #5
Cyberian
Member
 
Registered: May 2004
Distribution: SuSE
Posts: 117

Original Poster
Rep: Reputation: 15
I am the admin. But I am just a Day 4 Newbie.

I am currently using SuSE 9.1. Forgot to put my computer spec into my sig.

How do I move the file into a root folder? I am trying to move:

file:/home/cyberian/bin/AbsoluteE_Xmms.zip

into:

file:/usr/share/xmms/Skins/

Last edited by Cyberian; 07-08-2004 at 02:59 PM.
 
Old 07-08-2004, 02:56 PM   #6
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
go to your konsole/terminal

------------------
su

type your password

cd <directory of the files to copy>

cp *.* destination

exit
-------------------
 
Old 07-08-2004, 03:04 PM   #7
Cyberian
Member
 
Registered: May 2004
Distribution: SuSE
Posts: 117

Original Poster
Rep: Reputation: 15
I did "su" and typed in my password. And got comfirmed.

Then, I typed this:

bash: cd: file:/home/cyberian/bin/: No such file or directory

What does that mean?
 
Old 07-08-2004, 03:09 PM   #8
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
It means the system could not find the file.
you can do the same operation through the gui. Open menu k > system > file manager > file manager super user mode
There you can move files across the system, but TAKE CARE! Make sure what you are doing is right.
Again, you will be prompted to the root passwd.

You can later, learn how to use the command line. Its a very powerful tool. And ease things when it comes to repetitive tasks.
 
Old 07-08-2004, 03:13 PM   #9
Cyberian
Member
 
Registered: May 2004
Distribution: SuSE
Posts: 117

Original Poster
Rep: Reputation: 15
Okay, I moved the file into the root folder. Thank you all!!! You been great help.

Yes, I am trying to learn the command lines as I go use the computer everyday. I grew up with user-friendly Windows. Now I am switching to something more advanced.
 
Old 07-08-2004, 03:15 PM   #10
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
assuming the paths that you stated in an earlier post:

type:

Code:
su
type your password and press enter. then type:
Code:
cp /home/cyberian/bin/AbsoluteE_Xmms.zip /usr/share/xmms/Skins/
now type
Code:
exit
to return to normal user mode. this assumes of course that the file AbsoluteE_Xmms.zip exists and is in /home/cyberian/bin and also that the directory /usr/share/xmms/Skins exists.

hope this helps.

Last edited by lyceum; 07-08-2004 at 03:17 PM.
 
Old 07-08-2004, 03:16 PM   #11
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
looks like you succeeded while i was typing my response. congrats.
 
Old 07-08-2004, 03:21 PM   #12
Cyberian
Member
 
Registered: May 2004
Distribution: SuSE
Posts: 117

Original Poster
Rep: Reputation: 15
Yes, I did something wrong; I have added the "file:" into the directory part. Thanks again, Everyone.
 
Old 07-08-2004, 03:25 PM   #13
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
anyway, the install succeeded?
 
Old 07-08-2004, 03:38 PM   #14
Cyberian
Member
 
Registered: May 2004
Distribution: SuSE
Posts: 117

Original Poster
Rep: Reputation: 15
Yes.
 
Old 07-08-2004, 03:59 PM   #15
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Quote:
Originally posted by bruno buys

you can do the same operation through the gui. Open menu k > system > file manager > file manager super user mode
There you can move files across the system, but TAKE CARE! Make sure what you are doing is right.
I don't think it's completely damaging if a newb goes into root mode and runs a GUI. To them, it'll be like running Windows XP and won't have to worry about permissions. Even in Windows XP, you could mess things up, but a majority don't.
 
  


Reply


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
Copy root profile setting littleg Linux - Newbie 4 10-21-2006 04:28 AM
How to copy mysql file into text file lumba General 0 09-26-2005 05:08 AM
Is arrangement of file systems will differ if we copy a file from FAT 32 to ext 3 ? anindyanuri Linux - Software 2 02-20-2005 11:39 AM
i want to a copy a file from root to a floppy on the console using slackware 10.0 salviadud Linux - Newbie 2 02-07-2005 10:32 PM
copy root partition to a larger one? idiosynthetic Linux - General 2 12-14-2003 05:53 PM


All times are GMT -5. The time now is 08:49 PM.

Main Menu
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