LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-11-2004, 02:33 AM   #1
salahuddin_66
Member
 
Registered: Jan 2004
Location: Dhaka, Bangladesh
Distribution: Debian, Gentoo
Posts: 283

Rep: Reputation: 30
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
 
Old 08-11-2004, 02:52 AM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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.
 
Old 08-11-2004, 04:58 AM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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
 
Old 08-11-2004, 10:03 AM   #4
salahuddin_66
Member
 
Registered: Jan 2004
Location: Dhaka, Bangladesh
Distribution: Debian, Gentoo
Posts: 283

Original Poster
Rep: Reputation: 30
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
 
Old 08-11-2004, 10:43 AM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help quick! share folder vMatthews Linux - Networking 3 11-06-2005 10:57 AM
share a folder Alan87i Fedora 8 10-15-2005 04:47 PM
how can i share a file/folder common to all network users zameer_india Linux - Networking 1 09-30-2004 07:17 AM
how can i share a folder/file? duker_d_cooker Linux - General 3 03-10-2004 06:35 PM
trying to share folder between 2 users aymbpc Linux - Newbie 6 09-22-2003 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration