Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-23-2009, 02:40 PM   #1
LQ Newbie
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
cp read permission denied

I have this problem where i can't copy a few files from my pen drive.
Got the files from a public computer, with windows.

cp gives the following error--->
cp /home/user1/Documents/scjp
cp: cannot open `' for reading: Permission denied

lsattr shows this--->
lsattr: Permission denied While reading flags on

mount shows this--->
/dev/sdc1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

I have read a few other posts but haven't been able to solve my problem.
Please help.
Willing to try anything!

P.S: I use fedora 10

Last edited by wolfgang_b; 09-23-2009 at 02:43 PM.
Old 09-23-2009, 02:46 PM   #2
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
what filing system is the pendrive using? vfat/fat32 would be my guess... try enforcing the cp as root or with sudo as well, this might help, else wise windows permissioning on the files might be a little off...
Old 09-23-2009, 02:58 PM   #3
Registered: Jul 2007
Distribution: Slackware 14
Posts: 237
Blog Entries: 8

Rep: Reputation: 59
/dev/sdc1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
as root or sudo
#umount /dev/sdc1
mount -t vfat /dev/sdc1 /media/disk -o rw,uid=500,umask=000
Use your own user ID (no offense!). You can find it by
sh-3.1$ id
uid=500(jp) gid=100(users) groups=11(floppy),17(audio),18(video),19(cdrom),100(users)

Last edited by linuxpokernut; 09-23-2009 at 02:59 PM.
Old 09-30-2009, 01:14 PM   #4
LQ Newbie
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
thanx for the solutions,but they dont work.
had already tried su and sudo. tried changing permissions, doesnt work!
finally got the files in mail! but still would like to know of any other possible solutions(thats why im here, to learn). tried the mount technique also.

i would also like to mention that when i list the files in the pen drive,the folders appear in green(highlighted) and files appear in green.

ps: no offence taken for the comment on uid
also thanx for the prompt replies. sorry about my late reply

Last edited by wolfgang_b; 09-30-2009 at 01:17 PM.


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
Debian on VBox Read Only File System and Permission Denied Errors The Konqi Kid Debian 5 03-04-2008 06:07 PM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM
./ permission denied? DanTaylor Linux - General 5 03-14-2006 12:15 PM
ls: /: Permission denied Phage Linux - General 2 10-16-2005 06:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration