You are not logged in.

#1 2008-10-04 14:00:12

Andy Mack
Member
Registered: 2008-06-16
Posts: 133

Copied Files From CD/DVD Locked

Hiya folks,

When i copy files from a data cd/dvd to my home partition they are locked and can only be modified by root. How do I gain permission?

Thanks
Andy

Offline

#2 2008-10-04 15:23:33

arlite
Member
From: .de
Registered: 2008-05-02
Posts: 31

Re: Copied Files From CD/DVD Locked

file is probably just missing the writeable-flag. Try this:

$ chmod +w <filename>

Offline

#3 2008-10-04 17:45:35

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Copied Files From CD/DVD Locked

arlite is probably correct, since cd's are typically seen as a read-only media, files that are copied from a disc will frequently retain that ro attribute/ only thing is the command may have to be

$ sudo chmod +w <filename>

if only root can edit a file stands to reason that only root can change permissions on it!


.:[My Blog] || [My GitHub]:.

Offline

#4 2008-10-04 18:31:56

arlite
Member
From: .de
Registered: 2008-05-02
Posts: 31

Re: Copied Files From CD/DVD Locked

Ghost1227 wrote:

if only root can edit a file stands to reason that only root can change permissions on it!

I would say a user can change rwx-permissions without su/sudo as long as (s)he is the owner of the file(s).

I just tried it. Copying a file from cdrom wrote the file with these rights: -r-xr-xr-x and my useraccount as the owner. So I can use 'chmod +w' without su/sudo to make the file writeable.

wink

Offline

#5 2008-10-11 16:53:36

Andy Mack
Member
Registered: 2008-06-16
Posts: 133

Re: Copied Files From CD/DVD Locked

Sorry but I was hoping for something more a little more quicker. I have thousands of mp3's that I'd like to finally put on my laptop and most need the info edititng.

I know I can copy files using Ubuntu with none being locked but I'd like to stick with Arch.

Offline

#6 2008-10-11 17:39:13

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: Copied Files From CD/DVD Locked

Andy Mack wrote:

Sorry but I was hoping for something more a little more quicker. I have thousands of mp3's that I'd like to finally put on my laptop and most need the info edititng.

I know I can copy files using Ubuntu with none being locked but I'd like to stick with Arch.

Why don't just copy the contents and then run chmod -R -w /mnt/yourdisk/yourmp3 ?

Offline

Board footer

Powered by FluxBB