Link to home
Start Free TrialLog in
Avatar of dwcronin
dwcroninFlag for United States of America

asked on

access one document from 3 different linux accounts

My 2 sisters and I have accounts on my computer.  If I go find a neat wallpaper from my account, how can I put it on their accounts?  Do I have to download it three times?  Can I use Ubuntu  One to share the file or is there some common area on my machine where all 3 accounts can access the file?
Avatar of ozo
ozo
Flag of United States of America image

chmod o+r  document
will make document readable by anyone
ASKER CERTIFIED SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dwcronin

ASKER

farzanj: What is "ACL"?  My friend blew out his ACL in football practice.  That's probably not what you mean...
farzanj: I thought that was "setfac1" but that's "setfacl".  My mistake: "Access Control List".
Yes, it is setfacl  --L not 1.

Yes, it is Access Control List.  There are many different types of ACLs.  Many applications have their own ones.  But this is ACLs of the filesystem.

You can check ACLs by issuing command

getfacl filename
farzanj and ozo:  if I remember right, "ls" gives 10 characters and then the name of the file/directory.
owner: read/write/execute
group: read/write/execute
other (aka everyone): read/write/execute
Logically, where should "share" be?  Is it in my home directory with file permissions set to "777" or is "share" above everyone's home directories?
>> Is it in my home directory with file permissions set to "777" or is "share" above everyone's home directories?

As suggested by farzanj already: it's better to have a separate folder for sharing files. /share will do fine. That way all users have personal directory (/home/userid) and a (combined) folder /share for sharing things ;)
That's the part I don't understand - is "/share" off of my home directory - /home/dwcronin/share, or is it clear at the top with /etc, /sbin, /home?
/share is out of any other directory

In Linux/Unix filesystem, the top of tree is /
It is under directory /

So
                                  /
                                  |
______________________________________________________
|                          |                          |                   |
home                  usr                      share           etc
Thank you.
You are welcome.
farzanj: my apologies - I got "~" and "/" confused.
No problem.

/ is just / literally and is not expanded into anything else.

~ is expanded into your $HOME.  Suppose, I am user farzanj with home directory /home/farzanj

Then if I say

echo ~

It will be evaluated to
/home/farzanj

If I am root with home account /root then
echo ~ will be expanded to
/root

If you want to see the home account of userB then I can write
echo ~userB

Will evaluate to, may be,
/home/userB