openSUSE Forums > Network/Internet » How do I set password for multiple folders

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-Jan-2009, 02:01
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 3
aionly hasn't been rated much yet
Exclamation How do I set password for multiple folders

Hello guys.. I want to use opensuse 11 for data server...

I have 3 folder to share.. Can I make a different password for each folder....??

Thanks for share...
Reply With Quote
  #2 (permalink)  
Old 12-Jan-2009, 15:34
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,879
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: How do I set password for multiple folders

A couple of way's but here's one:
If you use Samba, and they are called e.g. music, video and data, you could create Linux users named "music", "video" and "data". Then you could delete everything inside the home directories of /home/music and /home/video and /home/data, leaving only the bare folders. Then add the usernames "music", "video" and "data" to the Samba user's database, with different passwords.

Make three shares like this in smb.conf:
Code:
[music]
path = /home/music
valid users = music
read only = no         <== optional if you want it writeable
Strip out the default shares [homes] and [profiles] and [users] and [groups] because they share those directories in various ways.

Then a remote user has to authenticate like this:
username = music
password = music_password

There are variations on this theme.
__________________
Drop in and visit some time.
Reply With Quote
  #3 (permalink)  
Old 12-Jan-2009, 15:41
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,879
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: How do I set password for multiple folders

Or if you want to use invisible shares you can use instead this share, which covers all three folders:
Code:
[homes]
        valid users = %S
        browseable = No
        read only = No
        inherit acls = Yes
Then a user types this address in the browser: smb://servername/music (etc) to get access.

And other variations.
__________________
Drop in and visit some time.
Reply With Quote
Reply

Bookmarks

Tags
data, opensuse, password, server, share


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2