Permissions

Discussion in 'Linux - General discussion' started by Xan21, Aug 6, 2006.

  1. Xan21

    Xan21 Regular member

    Joined:
    Jul 18, 2006
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    26
    I was wondering if you guys knew a command for FC that would change the permisions for any files in my home dir so i could write them. i copied my music from my NTFS drive but they are all maked read only. and i wanted to avoid manualy changing every file and folder. (when u change the folders permisions it doesnt change any of the files within the folder or any folders in it either) thank you guys
     
  2. creaky

    creaky Moderator Staff Member

    Joined:
    Jan 14, 2005
    Messages:
    27,900
    Likes Received:
    1
    Trophy Points:
    96
    the quick and dirty way is chmod +w <filename>
     
  3. Xan21

    Xan21 Regular member

    Joined:
    Jul 18, 2006
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    26
    but will that change the permissions of the files within the folder? or the folders within the parent folder. I mean i have 2000+ songs and i rather not do it one by one =P
     
  4. creaky

    creaky Moderator Staff Member

    Joined:
    Jan 14, 2005
    Messages:
    27,900
    Likes Received:
    1
    Trophy Points:
    96
    a-ha, if you want to do it recursively, say from a folder and all within it, do 'chmod -R <directory name>'

    be careful with this :)
     
  5. Xan21

    Xan21 Regular member

    Joined:
    Jul 18, 2006
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    26
    thank you! that worked perfectly. i knew about chmod but i didnt want to mess with it to much. i did that once and i ended up ruining my whole kernal hehe
     
  6. creaky

    creaky Moderator Staff Member

    Joined:
    Jan 14, 2005
    Messages:
    27,900
    Likes Received:
    1
    Trophy Points:
    96
    no worries, best to be safe than music-less :)
     

Share This Page