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 01-31-2006, 08:17 PM   #1
Feren6
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
CP Command >> Permissions


I boot up Knoppix (I have Windows XP Installed), and I am trying to copy this text file I have from my harddrive to my usb flash key. I enter terminal, and type 'cp eekotest.txt /mnt/sda1' and it says read-only file..I go to the graphical interface and i right click hda2 and go to permssion, i set everything to read and write (it said EVERYONE CAN VIE THE FILE) and i hit apply to all folders etc etc..it then comes up with an error that says 'PERMISSION SET FAILED IT COULD NOT SET PERMISSIONS FOR BLAHBLABHBLABHAL) some stuid macromedia file. Any help please? Thanks!

EDIT: There is 777 permissions for my sda1 flash key.

Last edited by Feren6; 01-31-2006 at 08:18 PM.
 
Old 01-31-2006, 10:11 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 49
remount it as read-write or something: mount -o rw,remount /dev/sda1
 
Old 01-31-2006, 11:35 PM   #3
silmaril8n
Member
 
Registered: May 2004
Location: Vancouver, WA
Distribution: Mint, Debian, Slackware
Posts: 123

Rep: Reputation: 15
I agree with the above poster. Make sure it's mounted as read/write.
 
Old 02-01-2006, 01:24 AM   #4
jk_warrior
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
Try to type your command with sudo.

"sudo cp bla.txt /dev/sda1/"

This will execute the command as root.
 
Old 02-01-2006, 03:01 AM   #5
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Please post the contents of your /etc/fstab file, so we can investigate the problem.
I agree with spooon and silmaril8n that it's most likely a mounting problem.

If that is indeed the case, the "sudo" approach of jk_warrior should fail too.
In any case, it would be better to use "su" rather than "sudo", unless you know how to set up "sudo" properly in the first place.
 
Old 02-01-2006, 08:06 AM   #6
Feren6
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Yeah, i checked the contents of my fstab file and it had 'ro' for the hda2 which i assume means read only so i deleted that and now I could copy and everything, i think thats right or is that an unsafe approach?
 
Old 02-01-2006, 03:15 PM   #7
Feren6
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I still need help. I rebooted knopix and heres is what i have for the fstab file
Code:
/proc      /proc       proc   defaults            0 0
/sys       /sys        sysfs  noauto              0 0
/dev/pts   /dev/pts    devpts mode=0622           0 0
/dev/fd0   /mnt/auto/floppy auto   user,noauto,exec,umask=000    0 0
/dev/cdrom /mnt/auto/cdrom  auto   user,noauto,exec,ro 0 0
/dev/cdrom1 /mnt/auto/cdrom1  auto   users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0 0
# Added by KNOPPIX
/dev/hda2 /mnt/hda2 ntfs noauto,users,exec,ro,umask=000,uid=knoppix,gid=knoppix 0 0
# Added by KNOPPIX
/dev/sda1 /mnt/sda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0 0
My windows drive is /mnt/hda2 .. I still can't copy files from /mnt/hda2 to sda1. .. and sda1 has rw permissions and all of that. please help!
 
Old 02-01-2006, 04:33 PM   #8
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
the reason /mnt/hda2 is read only is b/c it is ntfs. There is support for writing to ntfs in some live cd's. I think kanotix has it, but i would google first to be sure. If you start writing to that partition without ntfs support you may find yourself in some trouble.
 
  


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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 01:00 PM
command permissions zchoyt Linux - Newbie 1 05-20-2005 08:14 PM
Command line permissions Rawr101 Linux - General 4 10-16-2004 11:45 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 01:52 PM
permissions messed up chown command used tsayles21 Debian 3 03-30-2004 09:38 PM


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