I have a Linux file server. I am using SAMBA 3 as a domain controller.
I want to set up SAMBA shares on the file server that do not have to
be accessed from Windows machines via either UNC notation or by
separate mapped drives.
Instead, I want to have a share on the Linux server called Public
that is accessible to all network users from any Windows machine.
Within that share I want all users to be able to open, edit, and
create any files or folders, EXCEPT certain specific folders.
For certain specific folders within the Public share, I want access
controlled by a SAMBA valid users list, with the user names validated
by the domain controller.
In other words:
/Public/ (any Windows user can see it, put things into it, etc.)
Folder 1 (anybody can see it and open it and do anything inside it.)
Folder 2 (anybody... ditto...)
Folder 3 (access restricted to valid users)
Folder 4 (anybody can ... etc.)
Folder 5 (access restricted to valid users)
I've tried a number of things, none of which work.
Right now there's a share on the server called /data/. The only SAMBA
command for that share is:
writeable = yes
All of the shares that people actually interact with are inside
/data/. They all have permissions set as 777 for root, group, and
Others in Nautilus. Some of them also have SAMBA valid users lists,
which effectively override the file system permissions, UNLESS I put
the share inside one of the other shares, in this case, /Public/.
There isn't anything unusual about /Public/ compared to the other
shares as regards either file system permissions or SAMBA commands.
If I create a share called /Foo/ inside /Public/ and apply a valid
users list, then if somebody not on the list on a Windows machine
issues \\SERVER\Foo, they are asked for credentials. However, if they
issue \\SERVER\Public, then try to open \Foo from there, they are allowed in.
I also don't fully understand the force create mode and force
directory mode commands, or the create mask command, so any help in
showing how those things can affect his would be great.
I don't want to do veto files; it hides the folder and again requires
either UNC or mapped drive access.
I tried to use dont descend but I can't seem to make it work at all.
I realize that the Windows and Linux file systems are both implicated
here, and they behave differently with regard to permissions, but it
just seems to me that this is such a simple thing that there has to
be a way to make it work.
This situation cannot be affected by setting folder permissions in
Windows, I either get "access denied" (for folders created in Linux),
or Windows appears to let me make changes but they don't have any
effect (for folders created on the Linux server from Windows).
To summarize:
The way it is today:
/data/
/data/Public/ (UNC or mapping required; no valid user list; anybody
can see and get into)
/data/Another Share/ (UNC or mapping required; valid domain user list
controls access)
/data/Third Share/ (UNC or mapping required; different valid domain
user list controls access)
/data/Public/Some Share/ (even though there's a valid user list, any
users coming through /Public/ can get in; users not on the list
coming directly through a UNC or mapped drive cannot)
The way I want it is:
/data/
/data/Public/ (UNC or mapping required; no valid user list; anybody
can see and get into)
/data/Public/Another Share/ (Once in Public, valid domain user list
controls access)
/data/Public/Third Share/ (Once in Public, different valid domain
user list controls access)
/data/Public/Anything Else (Once in Public, anybody can see and get into)
I want to continue to use the domain to validate credentials, I don't
want to have to create separate user accounts and access groups on
the file server.
Thanks for any suggestions.
Ken Dibble
www.stic-cil.org
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/E4.76.02097.DA767D65@cdptpa-oedge03
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On Wed, Mar 2, 2016 at 5:21 PM, Ken Dibble <krdibble@stny.rr.com> wrote:
> I have a Linux file server. I am using SAMBA 3 as a domain controller.
>
> I want to set up SAMBA shares on the file server that do not have to be
> accessed from Windows machines via either UNC notation or by separate mapped
> drives.
>
> Instead, I want to have a share on the Linux server called Public that is
> accessible to all network users from any Windows machine. Within that share
> I want all users to be able to open, edit, and create any files or folders,
> EXCEPT certain specific folders.
I've created some tricky Samba configurations, but they are tough to get right!
Logged into the server using an admin account (like root), typing:
testparrm
will report what Samba thinks the configuration is, including an
uncommented config output, which can be handy to compare against your
Samba configs to see if there are commands Samba is ignoring or
misinterpreting.
Post that and we'll see if it matches what you've described above.
--
Ted Roche
Ted Roche & Associates, LLC
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CACW6n4saJS0X=5L9jL_4Q0ysOBw-zWNGtb9oib_T6B2C4riJ+Q@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On 2 Mar 2016 11:57 p.m., "Ted Roche" <tedroche@gmail.com> wrote:
> On Wed, Mar 2, 2016 at 5:21 PM, Ken Dibble <krdibble@stny.rr.com> wrote:
> > I have a Linux file server. I am using SAMBA 3 as a domain controller.
> >
> > I want to set up SAMBA shares on the file server that do not have to be
> > accessed from Windows machines via either UNC notation or by separate
> mapped
> > drives.
> >
> > Instead, I want to have a share on the Linux server called Public that is
> > accessible to all network users from any Windows machine. Within that
> share
> > I want all users to be able to open, edit, and create any files or
> folders,
> > EXCEPT certain specific folders.
>
> I've created some tricky Samba configurations, but they are tough to get
> right!
>
> Logged into the server using an admin account (like root), typing:
>
> testparrm
>
> will report what Samba thinks the configuration is, including an
> uncommented config output, which can be handy to compare against your
> Samba configs to see if there are commands Samba is ignoring or
> misinterpreting.
>
> Post that and we'll see if it matches what you've described above.
>
> --
> Ted Roche
> Ted Roche & Associates, LLC
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CAPqLOBytE2y_W6_Uo0k_ehQzq3YAjBqv22pRcBsgg4PvawOSZA@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On Thu, Mar 3, 2016 at 6:21 AM, Ken Dibble <krdibble@stny.rr.com> wrote:
> I have a Linux file server. I am using SAMBA 3 as a domain controller.
> I want to set up SAMBA shares on the file server that do not have to be
> accessed from Windows machines via either UNC notation or by separate mapped
> drives.
> ...
That's a long question.... :)
Don't forget to ask in Samba's user mailing list!
--
.~. Might, Courage, Vision. SINCERITY!
/ v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3)
/( _ )\ http://sites.google.com/site/changmw
^ ^ May the Force and farces be with you!
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CAGv=MJAkY4=ZTRYCY_VuPKB-GtPtNaqnw1ErWiqJpK5_TsxaBA@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Results from testparm this morning (note: the settings have been
reverted from my experiments; this is how it was before I started
tinkering, with the exception of the /Foo/ share.):
[root@spock ~]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[data]"
Processing section "[CDPA]"
Processing section "[Data]"
Processing section "[ECDC]"
Processing section "[NHTD RRDC]"
Processing section "[Public]"
Processing section "[SupWork]"
Processing section "[TBI RRDC]"
Processing section "[cildata2]"
Processing section "[Day Hab]"
Processing section "[Day Hab Staff List]"
Processing section "[MFP]"
Processing section "[Navigators]"
Processing section "[HR]"
Processing section "[Business Continuity]"
Processing section "[TRAID]"
Processing section "[MSC Clerical]"
Processing section "[Foo]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions
[global]
workgroup = STIC
server string = STIC File Server
security = DOMAIN
default service = data
winbind trusted domains only = Yes
cups options = raw
[data]
path = /data/Data
valid users = kend, stacys, rondaw, paulab
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[CDPA]
path = /data/CDPA
valid users = kend, susanh, nicoleg, jilll, caseyf, sheilal,
jont, jennd, emillies, pierreb, kimberlyl, katinar, paulab, rachelp,
patriciaq, pamelaf
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[ECDC]
path = /data/ECDC
valid users = kend, lauriew, colleenm, kathyr, joys
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[NHTD RRDC]
path = /data/NHTD RRDC
valid users = kend, laurao, daenaa, danettem, loriw, jont, ellenr
write list = kend, laurao, daenaa, danettem
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Public]
path = /data/Public
invalid users = guest
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[SupWork]
path = /data/SupWork
valid users = kend, kandis, dianeb, amandar
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[TBI RRDC]
path = /data/TBI RRDC
valid users = kend, belindat, jamieh, betsyg, ellenr, janesem, staceyb
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[cildata2]
path = /data/cildata2
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Day Hab]
path = /data/Day Hab
valid users = lucretiae, jennd, kend, briannas, sybilb,
nicolel, lindac, rachels, stevev, kristinai, jadec, katiet, caitling,
darciek, lauraj, jilll, emillies, patriciaq, kristaa
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Day Hab Staff List]
path = /data/Day Hab Staff List
valid users = jennd, caseyf, nicoleg, lucretiae, kend,
briannas, jont, sybilb, nicolel, lindac, stevev, katiet, caitling,
lauraj, darciek, kimberlyl, jilll, emillies, rachelp, paulab,
patriciaq, pamelaf, kristaa, rachels, stefanyd, gerardg
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[MFP]
path = /data/MFP
valid users = kend, pegs, jennd, dacial, patm
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Navigators]
path = /data/Navigators
valid users = kend, chade, patricial, aprilp, patrickr,
joleneg, pennyf, joys, wintam
write list = chade
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[HR]
path = /data/HR
valid users = kend, caseyf, kimberlyl, jont
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Business Continuity]
path = /data/Business Continuity
valid users = mariad, kend, jennd, caseyf, paulab, rachelp
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[TRAID]
path = /data/Public/TRAID
valid users = kend, kevinj, keesha, kevinj2
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[MSC Clerical]
path = /data/Public/MSC Clerical
valid users = kend, emilyn, joannen, emmam, jessicaa, cynthiam
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
[Foo]
path = /data/Public/Foo
valid users = kend, kevinj
read only = No
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/89.CD.03738.A0758D65@cdptpa-oedge03
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.