RE: [Samba] Making shares invisible to unauthorized users

2004-04-27 Thread Matthew J. DiBattista

Logon script for each user.

net use h: \\servername\username 
net use z: \\servername\share 
net use p: \\servername\public
net time
@echo   "Lets check for any updates to install." 
p:
cd updates
@echo   "If there are updates PLEASE install."
rem start realpop.exe
c:
@echo   "BYE BYE NOW!!"

==



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 27, 2004 6:26 AM
To: [EMAIL PROTECTED]
Subject: [Samba] Making shares invisible to unauthorized users

Hi, 

Is there a simple way to set up Samba so that users ONLY see the shares that

belong to them? 

I'm not talking about the user's HOME directory. But lets say I have 60 
shares in my smb.conf file. To make it less confusing for users when they
access 
the Samba server from Windows, I want the users to ONLY see the shares that 
belong to them. 

So, I want to set up each share so that it is only readable and writeable by

a single user. And so that only that user can see the share. What are the
key 
settings to achieve this kind of "visibility and access control"? 

I have figured out most of my Samba issues on my own, but I have a deadline 
today to get this issue resolved and I would appreciate hearing from someone

who knows the solution. 

Thanks in advance. 

Andy Liebman


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Making shares invisible to unauthorized users

2004-04-27 Thread Mac
>
>Is there a simple way to set up Samba so that users ONLY see the shares that 
>belong to them? 
>
>I'm not talking about the user's HOME directory. But lets say I have 60 
>shares in my smb.conf file. To make it less confusing for users when they access 
>the Samba server from Windows, I want the users to ONLY see the shares that 
>belong to them. 
>
>So, I want to set up each share so that it is only readable and writeable by 
>a single user. And so that only that user can see the share. What are the key 
>settings to achieve this kind of "visibility and access control"? 
>
>I have figured out most of my Samba issues on my own, but I have a deadline 
>today to get this issue resolved and I would appreciate hearing from someone 
>who knows the solution. 
>

Haven't had a chnace to test this out, but it sounds like
you might want to look at the 'include' option in smb.conf.

Simply put each user's share in a separate file named

smb.USERNAME.conf  (with USERNAME changed for each user)

and then remove the share from the main smb.conf,

Then put a line like:-

include  =  smb.%U.conf


and that will (I think) give you different shares listed
per user.


More info on the smb.conf(5) man page.


I know this works for %L  (meaning that users see a different
list of shares depending on which NetBIOS name they use to connect
to the server.

   Mac
  Assistant Systems Adminstrator @nibsc.ac.uk
[EMAIL PROTECTED]
   Work: +44 1707 641565  Everything else: +44 7956 237670 (anytime)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Making shares invisible to unauthorized users

2004-04-27 Thread Adam Tauno Williams
> So, I want to set up each share so that it is only readable and writeable by 
> a single user. And so that only that user can see the share. What are the key 
> settings to achieve this kind of "visibility and access control"? 
> I have figured out most of my Samba issues on my own, but I have a deadline 
> today to get this issue resolved and I would appreciate hearing from someone 
> who knows the solution. 

Define each share in a file such as smb.{username}.conf and "include =
smb.%U.conf" in your master smb.conf.  The share will only exist for the
matching user.  You can do the same by machine name or primary group.


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Making shares invisible to unauthorized users

2004-04-27 Thread AndyLiebman
Hi, 

Is there a simple way to set up Samba so that users ONLY see the shares that 
belong to them? 

I'm not talking about the user's HOME directory. But lets say I have 60 
shares in my smb.conf file. To make it less confusing for users when they access 
the Samba server from Windows, I want the users to ONLY see the shares that 
belong to them. 

So, I want to set up each share so that it is only readable and writeable by 
a single user. And so that only that user can see the share. What are the key 
settings to achieve this kind of "visibility and access control"? 

I have figured out most of my Samba issues on my own, but I have a deadline 
today to get this issue resolved and I would appreciate hearing from someone 
who knows the solution. 

Thanks in advance. 

Andy Liebman
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba