LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to share folder with users (https://www.linuxquestions.org/questions/linux-general-1/how-to-share-folder-with-users-216091/)

salahuddin_66 08-11-2004 02:33 AM

how to share folder with users
 
hello

i am a slackware 10.0 user i have copy my all audio and vedio to my home directory

i use kde default

and i use gnome rarely by another user

how can i give my other account to access only the /home/name/song folder

Dark_Helmet 08-11-2004 02:52 AM

My suggestion would be to move it out of your home directory if you can.
1. Make a directory in /usr/local/share. Name it "media" or whatever you like.
2. Copy over your audio and media files to the new directory.
3. Create a new group (I'll use "mediagr" just as an example)
4. Execute the following command (substituting your values): chown -R your_username:mediagr /usr/local/share/media
5. Execute the following command: chmod -R 740 /usr/local/share/media
6. Execute the following command: find /usr/local/share/media -execute chmod 750 {} \;
7. Add each user you want to have access to the files into the mediagr group

Once that's done, then everybody in the mediagr group should be able to read the files in the media directory, but only you will be able to delete any of the files. You might have to be root to execute the above commands (depending on the permissions for /usr/local/share itself)

If you absolutely must share the files from your home directory, then start at step 3, but substitute your directory for /usr/local/share/media of course.

masand 08-11-2004 04:58 AM

hi

i have not done but heard about

chroot jail

this confines the user to a particular directory

i will look more into it annd see if i get something usefull out of this


regards

salahuddin_66 08-11-2004 10:03 AM

thanx Dark_Helmet

it worked
i have create a folder and change it's permission chmod 777 -R name/

so that i can also delete my file when i am in other com
i am using it home

bye

Dark_Helmet 08-11-2004 10:43 AM

Glad to hear you have it working!

For the chroot thing, I wouldn't mess with that unless you're really familiar with it. Without getting too long and complicated, there are at least two different forms of chroot'ing a user (standard shell chroot, and application chroot - like ftp). The problem is, the directory you chroot the user to becomes their root directory, and they'll need command in that environment to list the directory, listen/view the files, and much more. It's a headache that I would avoid if possible :)


All times are GMT -5. The time now is 05:43 AM.