To make folders in your home directory available for other users on the same computer (read/write), basically you need to do three things. The procedure for Lubuntu is quite the same as for Ubuntu, apart from the difference in the file browser.
1. Make other users member of the group: "yourusername"
- The GUI way is to install
gnome-system-tools
(NB: In Lubuntu, it already is installed) and use the users and groups
-section. Manage groups > choose yourusername > properties >
add the other users by checking their checkboxes.
The command line way (if you don't want to use / install gnome-system-tools
) to add an existing user to group <yourname>
, is:
usermod -a -G <yourname> <user_to_add>
2. Change the permissions of the folder you want to share:
On Ubuntu: right-click on the folder in nautilus and choose properties
. In the permissions tab, change the group permissions for group yourusername
to read & write
.
Change the permissions for the files in the folder similarly (the button down in the nautilus properties window).
On Lubuntu: Change the permissions for the folder you'd like to share to at least read & write permissions for owner & group:
3.Set permissions for newly created files
Now you can access the shared folder from the other user's account(s) with full privileges to create and edit files and directories. However, if other users create new files, those files will be owned by the user who created them.
To give read, write and execute permissions (if the file is executable) on newly created files to all members of the group, there is still one thing left to do: run in a terminal (from the folder's owner account):
chmod g+s <shared folder>