My Linux username is "virchanza" and my group is "virchanza". Here's how my home folder looks:
virchanza$ ls -alhd /home/virchanza
drwx------ 59 virchanza virchanza 20K 2010-09-21 20:55 virchanza
As you can see, I have full access to my home folder, but my "group" and "others" have no access whatsoever.
Inside my home folder, I want to create a publicly accessible folder called "public_stuff":
virchanza$ mkdir public_stuff
virchanza$ chmod 777 public_stuff
virchanza$ ls -alhd public_stuff
drwxrwxrwx 2 virchanza virchanza 4.0K 2010-09-21 21:32 public_stuff
OK, you can see that this "public_stuff" folder has full access permissions for everyone. Now I'm gonna create a file inside this folder:
virchanza$ cd public_stuff
virchanza$ echo "One two three four five" > file.txt
virchanza$ chmod 777 file.txt
virchanza$ ls -alh
drwxrwxrwx 2 virchanza virchanza 4.0K 2010-09-21 21:35 .
drwx------ 60 virchanza virchanza 20K 2010-09-21 21:32 ..
-rwxrwxrwx 1 virchanza virchanza 24 2010-09-21 21:35 file.txt
Now I'm going to navigate back to the "/home" folder and switch to a different user
virchanza$ cd /home
virchanza$ su guest_user
guest_user$ cat /home/virchanza/public_stuff/file.txt
cat: /home/virchanza/public_stuff/file.txt: Permission denied
I thought this would work... but it doesn't.
How do I make a publicly-accessible folder within my private home folder?