Can't share files between users.

Asked by Dennis

I'm running 9.04, and there are 2 users on this compurter. I made a share folder in the /home dir, so we can both access our pictures, etc. When I go into properties to "share" the folder I get this error

'net usershare' returned error 255: net usershare add: cannot convert name "Everyone" to a SID. Invalid parameter

I'm new to ubuntu, and so far I think it's great . . . except I can't share my files. Help!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

you will need to create a group and add both of your users to the group, you can then give read and write access to the group, permitting both users access

e.g. (2 users foo and bar, want full access to /home/foo/share)

sudo groupadd share_group
sudo useradd -G share_group foo
sudo useradd -G share_group bar
sudo chown :share_group /home/foo/share
sudo chmod -R g+rw /home/foo/share

Now the group share_group is the group owner of the folder, the folder is still owned by foo but has granted access to the folder via the group (g+rw). You can even have folders in the share folder that are not accesible to the group and you can simply run:

sudo chown -R foo:foo /home/foo/share/secret

so foo is now the owner and group owner of the folder, bar is not a memer of the foo group (only foo is) so bar will not get access.

Revision history for this message
Dennis (postalden) said :
#2

Almost got it. Sticking with your example, bar has access to files in the share folder but not folders. foo cannot access any files or folders added by bar. Thanks for the help so far!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

try:

sudo chown -R :share_group /home/foo/share

forgot the -R to recursively set the permission

Revision history for this message
Dennis (postalden) said :
#4

bar just lost access again. I should have mentioned this before but I put the share in /home (/home/share) does this make a difference?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Thats fine, it can be anywhere at all, as long as correct permissions are in place then it can be accessed.

Revision history for this message
Dennis (postalden) said :
#6

Can I see which permissions are in place?

Revision history for this message
zvacet (ivicakolic) said :
#7

"Can I see which permissions are in place?"

Right click on folder you want to see permissions >properties>permissions.You can have advanced GUI permissions if you type in terminal

gconftool-2 --type bool --set /apps/nautilus/preferences/show_advanced_permissions True

After that look for permission of desired folder.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

sure:

ls -la /home/share

will show you what permissions are active.

Can you help with this problem?

Provide an answer of your own, or ask Dennis for more information if necessary.

To post a message you must log in.