Subscribesite-specific data which is served by this system,which is what this sounds like to me.
# create the music group
sudo addgroup music
# add yourself to the group
sudo adduser qux music
# gain group privileges (otherwise you'll only get them at your next login)
newgrp music
# create the place you will put the music, and give it the right ownership
sudo mkdir -p /srv/music
sudo chown qux:music /srv/music
# copy the music in, and set its group to the proper group:
cp -r /foo/bar/* /srv/music/
chgrp -R music /srv/music
# make sure the permissions on all the files are the right values:
find /srv/music -type f -exec chmod 0664 '{}' ';'
find /srv/music -type d -exec chmod 0775 '{}' ';'
sudo chmod -R 777 /srv/musicfind /srv/music -type d -exec chmod g+s '{}' ';'You are not logged in, either login or create an account to post comments
posted by JMOZ at 12:36 PM on November 18, 2006