LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-15-2005, 11:29 AM   #1
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Rep: Reputation: 30
Copy file denied


Hi, when i want to copy files from one folder to another folder, i get the permission denied message. I have logon as root in RHL 9. Pls asvise. Thanks

Regards
Daniel
 
Old 05-15-2005, 11:41 AM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Which files are you trying to copy, and to where? That would go a long way towards figuring out why you might be getting that error
 
Old 05-15-2005, 01:01 PM   #3
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Hi, i was doing kernel compiling. I just copy the linux RPM 2.6 kernel from cd to a folder.

Regards
Daniel


Quote:
Originally posted by rose_bud4201
Which files are you trying to copy, and to where? That would go a long way towards figuring out why you might be getting that error
 
Old 05-15-2005, 01:15 PM   #4
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Which folder? If you would, please run ls -la <destination foldername> and post the output?
 
Old 05-15-2005, 07:12 PM   #5
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
hi, i was copying the file to /usr/scr folder. Sorry i can't get the ls-la command run right now.

Regards
Daniel

Quote:
Originally posted by rose_bud4201
Which folder? If you would, please run ls -la <destination foldername> and post the output?
 
Old 05-16-2005, 11:12 AM   #6
jonlake
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252

Rep: Reputation: 31
Is that a typo /usr/scr, instead of /usr/src? The command is ls -la (with a space in between the ls and the -la).
 
Old 05-16-2005, 11:44 AM   #7
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
R u getting problem whiel installing through rpm....???

check out permisssion of rpm file...
when u copy it from cd it has read only permission....

change the permission with chmod and try it out...
~pratik
 
Old 05-16-2005, 11:46 AM   #8
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Without knowing whether the permission error is happening when he's trying to read from the CD or write to the filesystem (the exact error message would help here), and without knowing the permissions of the destination directory, it's sort of hard to diagnose the real error.... :-/
 
Old 05-17-2005, 11:02 AM   #9
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Hi, below is my output from a terminal

[root@localhost usr]# ls -la
drwxr-xr-x 3 root root 4096 may 6 07:44 src

[root@localhost src]#ls -la
drwxr-xr-x 3 root
drwxr-xr-x 15 root
drwxr-xr-x 2 root

I also check on the /usr/scr folder properties->permission , it says i'm not the owner and only have read and execute permission. is this the problem ? Thanks

Regards
Daniel




Quote:
Originally posted by rose_bud4201
Which folder? If you would, please run ls -la <destination foldername> and post the output?
 
Old 05-17-2005, 11:04 AM   #10
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Forget to mention that, i already copy the file from CD to a desktop. Now i want to drag the file to that folder but it gives me this error message. Thanks

Regards
Daniel


Quote:
Originally posted by DanielTan
Hi, below is my output from a terminal

[root@localhost usr]# ls -la
drwxr-xr-x 3 root root 4096 may 6 07:44 src

[root@localhost src]#ls -la
drwxr-xr-x 3 root
drwxr-xr-x 15 root
drwxr-xr-x 2 root

I also check on the /usr/scr folder properties->permission , it says i'm not the owner and only have read and execute permission. is this the problem ? Thanks

Regards
Daniel
 
Old 05-17-2005, 11:05 AM   #11
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
How to check the rpm file permission ? no problem when installing.

Regards
Daniel


Quote:
Originally posted by p_s_shah
R u getting problem whiel installing through rpm....???

check out permisssion of rpm file...
when u copy it from cd it has read only permission....

change the permission with chmod and try it out...
~pratik
 
Old 05-17-2005, 12:49 PM   #12
jonlake
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252

Rep: Reputation: 31
Post the command that you run to move the file. Or are you doing it from a gui, which if you are, you most likely not running as root (and if you are, you really shouldn't be).
Root can rwx to the specified folder.
Everyone else can only read and execute in that folder, so if you are running as anyone else, you will not be able to put anything in that folder. Try running as root and see what happens.
 
Old 05-17-2005, 03:08 PM   #13
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Perhaps more correctly, don't login as root and try to drag it from wherever it is not to /src/ through a GUI. Open up a terminal as your normal user, su to root, and cp the file manually.
 
  


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
Access Denied on a file type? Drfarfrompuken Linux - General 3 11-28-2005 06:32 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
access denied on file /etc/ftpaccess spawn500 Linux - Software 2 01-25-2003 01:38 PM
access denied on file /etc/ftpaccess spawn500 Linux - Security 1 01-25-2003 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:55 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