Re: Permissions on folder

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux