LinuxQuestions.org
Help answer threads with 0 replies.
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 09-23-2009, 01:40 PM   #1
wolfgang_b
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
cp read permission denied


Hi,
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 const1.java /home/user1/Documents/scjp
cp: cannot open `const1.java' for reading: Permission denied

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

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 01:43 PM.
 
Old 09-23-2009, 01:46 PM   #2
r3sistance
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, 01:58 PM   #3
linuxpokernut
Member
 
Registered: Jul 2007
Distribution: Slackware 14
Posts: 237
Blog Entries: 8

Rep: Reputation: 59
Quote:
/dev/sdc1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
as root or sudo
Code:
#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
Code:
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 01:59 PM.
 
Old 09-30-2009, 12:14 PM   #4
wolfgang_b
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
hi,
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 12:17 PM.
 
  


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

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

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