Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm setting up a samba primary domain controller in Debian woody and the users are logging into the domain fine and can access their shares. I would like to restrict the listings of available shares to only authenticated users of the samba domain. I know this works in a win NT4 domain, how does one do it with samba?
This is the listing I get from an nt4 pdc (belongs to a different domain than this system 'WS-072') without supplying a username or password...
root@WS-072:/etc/samba# smbclient -L //nt4pdc
added interface ip=192.168.2.45 bcast=192.168.2.255 nmask=255.255.255.0
Got a positive name query response from 192.168.2.5 ( 192.168.2.5 )
Password:
Anonymous login successful
Domain=[HMS] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
If I do supply a username (with the -U option) and the proper password, I do get a listing of the available shares.
Now if I try the same listing without a username or password on the samba primary domain controller of the workgroup this system belongs too... I should get the same access denied for guest user share listings, but I don't - it shows all of them.
Sharename Type Comment
--------- ---- -------
tmp Disk temporary files
IPC$ IPC IPC Service (debianpdc server (Samba 2.2.3a-12 for Debian))
ADMIN$ Disk IPC Service (debianpdc server (Samba 2.2.3a-12 for Debian))
thoughts, suggestions, and of course solutions greatly appreciated. thanks.
Are you logging out with Alt-Ctrl-Del and then logging back in on the client (I am assuming the client is running MS). If not, MS has a tendancy to "keep" your logins active until you use the Alt-Ctrl-Del method to log out. Just some food for thought.
I am using my linux workstation (WS-072) to list the shares of the nt4 pdc (nt4pdc) and samba pdc (debianpdc) with the "smbclient -L \\netbiosname" command.
I have a win98 workstation to browse the network neighborhood, but to doubleclick/access the pdc of either domain, I must be authenticated to that pdc already in that domain... or else it doesn't let me see the shares -- it requests a password for IPC$. The smbclient command seems to be a lower level program, that will give me share information... so I'm using that to test. thanks though, good idea.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.