LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-28-2004, 12:00 PM   #1
CaptainRegular
Member
 
Registered: Aug 2004
Location: Virginia Tech
Distribution: Xandros 3.01
Posts: 30

Rep: Reputation: 15
Different types of Samba shares


Ok, I ALMOST got my smb.conf setup the way I want it, but I'm having some trouble doing something that I'm not exactly sure I'm even trying to implement it correctly. I want 3 different SMB shares on one MDK10 machine.

1. /home/user/netshare
All contents open, no password prompt needed to access it, you click on the machine and it shows up and you can READ the files.

2. /home/user/pubdrv
A public network drive. Anybody on the network can read AND write to this directory. Used for photo editing from a laptop to other machine, currently in-use documents on multiple machines, things like that.

3. /home/user
The WHOLE directory, but I want access to it restricted to a username and password. Let's call the user "bob" and password is "pass" I want to be able to open the machine in Network Neighborhood and do the first two shares without even getting a password, prompt, which I can do now. I also have a printer shared in this fashion, as well. But I want a password prompt when I click on the third share, which I'll call "access" I'm posting a copy of my smb.conf file here, I know there's some redundant stuff in it for the free shares, but it works NOW, my question is how do I add the third share without changing the other two?

[global]
load printers = yes
printcap name = cups
printing = cups
netbios name = linuxbox
security = share
guest ok = yes
guest account = user
guest = user
workgroup = WORKGROUP
print command = lpr-cups -P %p -o raw %s -r

[linux]
path = /home/user/netshare
writeable = no
security = share
guest ok = yes
guest account = user
guest = user

[pubdrv]
path = /home/user/pubdrv
writeable = yes
security = share
guest ok = yes
guest account = user
guest = user


[printers]
comment = DeskJet
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes
printer admin = root


Not sure what to do here, anything I try either leaves it open to be viewed, passwords ALL the folders on the machine, or leaves it all open to WRITE. Help! I'm getting better, but I'm still a Linux n00b.

Last edited by CaptainRegular; 08-28-2004 at 12:03 PM.
 
Old 08-30-2004, 02:39 PM   #2
CaptainRegular
Member
 
Registered: Aug 2004
Location: Virginia Tech
Distribution: Xandros 3.01
Posts: 30

Original Poster
Rep: Reputation: 15
Update:

I think it might be possible to get passworded write access (this would be the only instance a pass prompt comes up) by using

[homes]
comment = Home Directories
writeable = yes
browseable = No

Somewhere in there. Would I need to change the security to = user, or can I leave it as share? I REALLY don't want to make the other folders passworded. Is Samba even capable of doing this? I've heard of people using TWO instances of samba running on one machine, I guess if that's possible and needed for this, I could make one user and the other share, but that seems REALLY out of the way, especially for Linux, which is seeming to be able to do just about anything.

Also curious about how to assign a login/password combination to this share. I don't care if I have to make a new user or not, but I'd like to be able to do this from any WinXP box without installing new users on it.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba 3.0.6 - How to mount Samba Shares from Windows 2003? kp1 Linux - Software 2 09-10-2004 06:03 PM
samba shares Red Squirrel Linux - Software 0 03-08-2004 04:03 PM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM
wrong file types when browsing samba rudyw Linux - Software 2 08-16-2003 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:29 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