Find the answer to your Linux question:
Results 1 to 10 of 10
I've noticed that when I take files off my CDROM drive (a DVD Disc) that they all have a little lock on them and I have to go through and ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Location
    Daytona Beach, FL
    Posts
    30

    Need fix for file permissions from CDROM

    I've noticed that when I take files off my CDROM drive (a DVD Disc) that they all have a little lock on them and I have to go through and change every file permissions by right clicking on them and choosing properties. Is there a way I can set up Ubunutu to NOT do this. Its HIGHLY annoying for me. I'm the only person who uses this PC so there is no concern about permissions for others on my PC. Is there a setting that will set it where files coming off the CDROM do not automatically go into lock down mode?

  2. #2
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    This doesn't quite answer your request but I have some explaination and a semi solution, if you don't mind the command line interface.

    Basically, since all files on a CD are read-only, these permissions tend to be carried over when files are copied off.
    If you ever noticed, often MS windows does the same thing.

    If you enter a terminal, cd to the directory you copied the files to, then type chmod +w * , all files in that dir should suddenly become writeable and those little locks disappear.

  3. #3
    Just Joined!
    Join Date
    Apr 2008
    Location
    Daytona Beach, FL
    Posts
    30
    Thanks so there is no way to make it not happen at all then?

  4. #4
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    Quote Originally Posted by metalguy639 View Post
    Thanks so there is no way to make it not happen at all then?
    The fact that I have never found one doesn't mean there isn't one, it's just never been that important to me as a simple "chmod -R +w *" will make the files in the current directory and all sub-directories writable.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  5. #5
    Just Joined!
    Join Date
    Apr 2008
    Location
    Daytona Beach, FL
    Posts
    30
    No prob thanks guys

  6. #6
    Just Joined!
    Join Date
    Apr 2008
    Location
    Daytona Beach, FL
    Posts
    30
    chmod +w * does not work tried that. I get that its an invalid mode:

    Code:
    chmod: invalid mode: `-=CLASSICAL=-,-=JAZZ - BLUES=-,-=MEDITATION - AMBIENT - NEW AGE=-,-=OPERA=-,-=R&B - SOUL - RAP - HIP HOP=-,-=ROCK - POP=-,-=SOUNDTRACKS=-'
    Try `chmod --help' for more information.
    damien@damien-desktop:~/Music$ chmod --help
    Usage: chmod [OPTION]... MODE[,MODE]... FILE...
      or:  chmod [OPTION]... OCTAL-MODE FILE...
      or:  chmod [OPTION]... --reference=RFILE FILE...
    Change the mode of each FILE to MODE.
    
      -c, --changes           like verbose but report only when a change is made
          --no-preserve-root  do not treat `/' specially (the default)
          --preserve-root     fail to operate recursively on `/'
      -f, --silent, --quiet   suppress most error messages
      -v, --verbose           output a diagnostic for every file processed
          --reference=RFILE   use RFILE's mode instead of MODE values
      -R, --recursive         change files and directories recursively
          --help     display this help and exit
          --version  output version information and exit
    
    Each MODE is of the form `[ugoa]*([-+=]([rwxXst]*|[ugo]))+'.
    
    Report bugs to <bug-coreutils@gnu.org>.
    It said to type in the help and that si what I did but I have no idea what to use from that help tidbit I just got.

  7. #7
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    chmod -R +w * works fine for me
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  8. #8
    Just Joined!
    Join Date
    Apr 2008
    Location
    Daytona Beach, FL
    Posts
    30
    Quote Originally Posted by elija View Post
    chmod -R +w * works fine for me
    Thanks just found pretty much the same thing here: https://help.ubuntu.com/community/FilePermissions and it worked just fine for me.

  9. #9
    Linux Newbie TaZMAniac's Avatar
    Join Date
    Jan 2009
    Posts
    247
    Try this.
    Copy files from Cd to a folder you made for them.
    Now go up to Edit and click on Select All.

    Now right click on a highlighted file, go to Properties and change permissions from there. The default will be for your user as Read Only.
    Change it to Read and Write and the lock icon will disappear.

    I find that if I select the files on the Cd and copy them to a folder they remain highlighted and I can skip a whole step by not needing the Select All button.

    This is essentially the same as what was posted except it requires no terminal or typing.

    TaZMAn

  10. #10
    Just Joined!
    Join Date
    Apr 2008
    Location
    Daytona Beach, FL
    Posts
    30
    Quote Originally Posted by TaZMAniac View Post
    Try this.
    Copy files from Cd to a folder you made for them.
    Now go up to Edit and click on Select All.

    Now right click on a highlighted file, go to Properties and change permissions from there. The default will be for your user as Read Only.
    Change it to Read and Write and the lock icon will disappear.

    I find that if I select the files on the Cd and copy them to a folder they remain highlighted and I can skip a whole step by not needing the Select All button.

    This is essentially the same as what was posted except it requires no terminal or typing.

    TaZMAn
    Thanks but that was what I was doing previously and its really annoying because after you set the permissions on the folders then you have to open each folder & set the permissions and when you just transferred 4 gigs of mp3 albums to your hard drive that takes forever. I'm using the command line right now and its MUCH easier.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...