Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

username requested when browsing through Samba

Status
Not open for further replies.

mayerling

MIS
Feb 9, 2004
48
US
I browse the Unix server through My Network places-Windows Network, when I click on it I am able to browse Unix folders but when I click on any Unix folder, I am requested for a username and password. Should I create NT users on Samba and Unix with same password ?

Thank you
 
this is a reasonable way to get this to work.

other options are:
- no password; anyone can access the folder
- authenticate against a remote domain server
- offer some access to anon and full access to authenticated users.

If you want some help on getting one of these options to work, let us know!

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
How about authenticate against a remote domain server? I want to have the users authenticated by the NT Domain server.
 
Maybe I did not explain myself very well, but here is the scenario: I have Samba 2.2 running on SCO Open Server and would like to know if the usernames on my Windows domain have to match the Samba usernames on the Unix machine or can I use one username on the Windows client, and a different username on the Samba server?

Thank you
 
Manarth
I have already done the smb.conf changes as shown on link you sent me, but I have not used Winbind so far, but this is what I found :

The following instructions explain how to allow for different Samba and Windows usernames on a Samba server:

1. Edit the /etc/samba.d/smb.conf file and uncomment the following line:

username map = /etc/samba.d/smbusers

2. Edit the /etc/samba.d/smbusers file and make an entry for every Samba/Linux username and the equivalent Windows username, for example:

janeen = &quot;Janeen C&quot;
john = JohnSmith
jeff = jeffc jeffrey jr

In the above example, Janeen C is mapped to linux user janeen. The quotes are required for names with spaces. Linux user john is equal to Windows user JohnSmith. And the linux user jeff will be mapped to jeffc, jeffrey, or jr, meaning that any Windows user with these usernames will login to the shares associated with jeff.

3. Stop and restart the samba service by typing &quot;samba restart&quot; from the commandline.

I can't find /etc/samba.d/smbusers, and I wonder if this smbusers file is only for Linux. I have sco open server, I don't know if this file is named different. Do you know what file can I use for Sco ?

Thank you
 
/etc/samba.d/smbusers is a 'typical' location on a linux platform, but this does vary across flavours - but according to sco it is found at /etc/samba.d/smbusers

(
Perhaps the user file doesn't exist yet?

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
I found smbusers at /etc/smbusers.
I got my first active connection (the PDC) but that's it
:-(

This is /var/syslog error: NT_STATUS_INVALID_WORKSTATION:smbd/password.c:domain_client_validate(1609). smbd(4788):domain_client_validate:unable to validate password for user pater in domain DOM-DOMAIN to Domain controller DOM-PDC.

Any idea ?
 
To access the share on Samba your username and password that you log onto your workstation will have to be the same in samba/*nix
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top