LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-28-2003, 05:55 PM   #1
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Rep: Reputation: 15
Error while moving?


i just tryed to move a file into

/usr/src/linux-2.4.20-8/drivers/net

and i got this Error message saying:

Error while moving.
you do not have permissions to write to this folder
 
Old 10-28-2003, 05:58 PM   #2
65_289
Member
 
Registered: May 2002
Distribution: Ubuntu 5.04, Kanotix
Posts: 163

Rep: Reputation: 30
Yeah, that happens when you don't have write permission for a directory.

I think only root can write that directory by default...


Last edited by 65_289; 10-28-2003 at 06:00 PM.
 
Old 10-28-2003, 06:00 PM   #3
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
yeah i worked that part out, how do i get them? coz i need to install that file under that dir, i am the only user...

thanks for help
 
Old 10-28-2003, 06:01 PM   #4
65_289
Member
 
Registered: May 2002
Distribution: Ubuntu 5.04, Kanotix
Posts: 163

Rep: Reputation: 30
I was just being a jerk. You have to either

A) "su" to become root, then copy the file (Recommended), or

B) change the permissions on the directory (NOT RECOMMENDED)
 
Old 10-28-2003, 06:03 PM   #5
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
su? whats that?

<<< this is why im in the newbie section
 
Old 10-28-2003, 06:05 PM   #6
65_289
Member
 
Registered: May 2002
Distribution: Ubuntu 5.04, Kanotix
Posts: 163

Rep: Reputation: 30
"su" is the command you issue to become the root user (or another user). You login as your regular user, then type "su -". It will ask you for the root password, then you will be root. Then, you can copy the files you need. After you finish copying, you type "exit" to go back to being a regular user.
 
Old 10-28-2003, 06:07 PM   #7
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
right okay, sounds simple enough, now for a stupid q, were do i type "su-"?

first time linux user
 
Old 10-28-2003, 06:37 PM   #8
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
"su" is the command you issue to become the root user (or another user).
where do i type this command?
 
Old 10-28-2003, 06:47 PM   #9
hindenbergbaby
Member
 
Registered: Sep 2003
Location: Boston
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134

Rep: Reputation: 15
In KDE, click on Konsole, the computer screen with the shell in front of it...

In gnome, click on the computer screen in the panel bar with the little >- prompt on it...

There is a short cut key combo, but I just tried it and crashed X, so I won't give you that... I'm a newb too

shoe
 
Old 10-28-2003, 06:49 PM   #10
szf2
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat 9.0
Posts: 17

Rep: Reputation: 0
Type it your favorite shell (e.g. bash) which is the Unix equivalent of an MS-DOS prompt. It will then prompt you for the superuser password. Type it in, press return, and you are now root. You can check it by typing

whoami

which should return "root". When you are done, type exit to stop being root. You will still be in the same shell session, but logged in as whatever user you were before (type "whoami" again to verify).
 
Old 10-28-2003, 06:51 PM   #11
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
you seem to be the only one i understand! thanks hindenbergbaby and szf2, ill reboot and give both ways ago, get back to you soon, nice one
 
Old 10-28-2003, 07:05 PM   #12
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Right, i dont seem to be able to find Konsol, and the only promt kinda thing i found was "terminal" i typed "su" into that and my password, and it still wouldnt let me drag my files to were i wanted them....why not? any one?
 
Old 10-28-2003, 07:11 PM   #13
hindenbergbaby
Member
 
Registered: Sep 2003
Location: Boston
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134

Rep: Reputation: 15
Try going to your panel (I think this will work in KDE or Gnome, I'm in Gnome now), go to System, then shells, then bash... that should open your console... I think terminal should be the right place, but you should only be able to do command line work from there... which, if I'm reading correctly, you still have the ability to drag and drop?

shoe
 
Old 10-28-2003, 07:15 PM   #14
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
right okay, well i dont seem to have a gnome or kde desktop, its just redhat, and i can only get up terminal at the mo, so from what i know, i type su, then password, and it logs into root, i can then gobak to desktop and drag my file over, then click bak on the terminal window and type exit, and all done right? coz it aint working....still say i got no permission
 
Old 10-28-2003, 07:19 PM   #15
hindenbergbaby
Member
 
Registered: Sep 2003
Location: Boston
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134

Rep: Reputation: 15
Try this, from the terminal type

su
your root password at prompt

mv /home/username/filename /directoryyouwantmovedto

...in other words, we're doing this via command line... type in mv, the path to the file where it presently is, then a space, then the path to the directory where you want the file moved to.

then go to the directory where you inserted it... cd /directory you moved to
and then
ls
and see if the file was moved there.

shoe
 
  


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
"cannot change file permissions" error when moving data to and from pendrive Whiskers Mandriva 4 01-02-2005 03:49 AM
moving from one hd to another katy_c4c Linux - Newbie 3 10-22-2004 04:56 AM
copying/moving stalls when moving a lot of data to a usb stick =X= Linux - Hardware 10 07-30-2004 06:29 AM
moving a file to a folder gets error jackstoage Linux - Newbie 3 04-02-2004 11:18 AM
UT2003 Error Moving File LOUDSilence Linux - Software 8 12-26-2003 02:09 AM


All times are GMT -5. The time now is 06:25 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration