You are not logged in.
Pages: 1
I just installed a second hard drive to house all of my music files, and mounted it to /media, then transferred all of my files to it. The problem is, I used samba to transfer all of the files from my XP box, so all the directories/files are owned by root, and it would take my a day and a half to chown each individual directory. Is there an easy way to change ownership of the entire drive/directory? Sorry for the noob question but google and man chown didn't really help me much.
Offline
Hi,
you can use chown -R <user>:<group> <directory>
Offline
Use the recursive switch:
chown -R USERNAME:users /media
where USERNAME is your user name.
Offline
Ahhhh, so that's what recursive means.....
Thanks for the help.
Offline
Pages: 1