Permissions on folder

Craig White craigwhite at azapple.com
Thu Oct 13 16:02:43 UTC 2005


On Thu, 2005-10-13 at 17:48 +0200, nicolas Gourlé wrote:
>  Hi,
> 
> I search to create a folder where everybody can read-write all files (his and others) Is there any permissions to put on the folder?
> Thank you for your help!
----
sounds like a question that doesn't have all the information...

mkdir /home/files-everybody
chgrp users /home/files-everybody
chmod g+rwxs,o+rwx /home/files-everybody

then perhaps a little scripting...

# cat /root/mklinks
#!/bin/sh
#
# puts a link to shared directory in everybody's $HOME directory
#
USERS=/tmp/users
SHELL=/bin/sh

getent passwd | awk -F: '$3 > 499 && $3 < 10000 { print $1 }' \
| grep -v '\$' > $USERS

for i in `cat $USERS`; \
do su - $i -s $SHELL -c "ln -s /home/files-everybody \
/home/$i/files-everybody"; \
done

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the fedora-list mailing list