LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-08-2003, 01:09 PM   #1
unolinuxguru
LQ Newbie
 
Registered: Jan 2002
Location: omaha, ne
Distribution: suse, debian, redhat, mandrake, openbsd, progeny, engarde
Posts: 15

Rep: Reputation: 0
Smile restricted share listings in samba domain


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]

Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
<snip>

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.

root@WS-072:/etc/samba# smbclient -L //debianpdc
added interface ip=192.168.2.45 bcast=192.168.2.255 nmask=255.255.255.0
Password:
Anonymous login successful
Domain=[LINUXTEST] OS=[Unix] Server=[Samba 2.2.3a-12 for Debian]

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.
 
Old 02-08-2003, 01:58 PM   #2
pfloor
LQ Newbie
 
Registered: Jan 2003
Posts: 12

Rep: Reputation: 0
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.
 
Old 02-08-2003, 03:54 PM   #3
unolinuxguru
LQ Newbie
 
Registered: Jan 2002
Location: omaha, ne
Distribution: suse, debian, redhat, mandrake, openbsd, progeny, engarde
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
Samba Share on a Domain Sern Linux - Software 1 05-12-2005 01:05 PM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM
Invoking NT Domain user authentication for restricted web pages explorer Linux - Networking 1 10-08-2003 05:19 AM
Joining a machine from another domain to my linux samba domain acummins Linux - Networking 0 09-13-2003 07:07 AM

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

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