1833105 Members
3186 Online
110051 Solutions
New Discussion

Re: Samba

 
SOLVED
Go to solution
William Pribble
Frequent Advisor

Samba

I have samba installed on my HP-UX server and so far the server installation looks good, but I still can not connect my WinNt workstation to the share. Can someone help me define how I need the smb.conf file configured, I want a dedicated list of users that can access this share. Also any info on how the client connection should take place would be great. I am currently using command line; net use X: //hostname/share

thanks again
14 REPLIES 14
John Poff
Honored Contributor
Solution

Re: Samba

Hi Elaine,

I use Samba here, and I'm lazy. I setup a group in /etc/group for each share and make users members of that group for access to the share.

Your net use command looks ok, but I think the slashes go the other way?

JP
Uday_S_Ankolekar
Honored Contributor

Re: Samba


From client side , use map network drive, select the drive and in path use share name like this \\hostname\sharename

Goodluck,

-USA..
Good Luck..
Darren Prior
Honored Contributor

Re: Samba

Hi Elaine,

First off, here's some good reference material: If you're using CIFS - Installing and Administering the CIFS/9000 Server - available with CIFS/9000 and also on http://docs.hp.com . Also O'Reilly's Using Samba book (helpful for either the Open Source Samba, or CIFS/9000.)

CIFS has some configuration scripts which ease you into setting up the smb.conf. There's also SWAT which is a web GUI for editing smb.conf, and has online help for each keyword. SWAT is available by pointing your browser at http://myhostname:901 and authenticating using root's password.

There are a couple of different security levels in Samba - the most common are user and domain. User-level security uses a separate password file for Samba, domain-level uses your Windows PDC - the Samba server then sits in that domain.

Whichever you use you'll need to set 'valid users' and 'write list' for your list of users.

Hope this gives you some pointers - your question is very wide, so hopefully reading through some of the docs will help you narrow down exactly what you want to achieve then you can post further questions if necessary.

regards,

Darren.
Calm down. It's only ones and zeros...
William Pribble
Frequent Advisor

Re: Samba

thank you for all the great infromation. I have set up as you all have suggested but when I try to map the network dirve(thorugh windows not the command line) I get "network name not found" any ideas?

Thanks
T G Manikandan
Honored Contributor

Re: Samba

Are the daemons

smbd and nmbd running on the unix machine.
When you start nmbd it will be listed on the windows machine network neighbourhood.


THanks
William Pribble
Frequent Advisor

Re: Samba

smbd was not running, thank you for your help. it seems to connect now ans I get a prompt for username and password, when I enter my user andme and password I get the message "the account is not authorized to login from this station" Any other ideas, thanks again for all the great help so far !!!
Darren Prior
Honored Contributor

Re: Samba

Hi Elaine,

The "account not authorized to login from this station" error sounds very much like a mismatch of encrypted and non-encrypted passwords.

Have a look at this document in the knowledge database for info on how to fix that: CIFSKBRC00005899 Please remember that you need to have your ITRC user id linked to your contract details to view the knowledge database. There's also docs in /opt/samba/docs/textdocs regarding encryption.

regards,

Darren.
Calm down. It's only ones and zeros...
William Pribble
Frequent Advisor

Re: Samba

I may be getting closer.
I set the encryptpassword to globals as yes now it seems I connect and I am getting a login box but now when I attempt to log in I get "incorrect passwrod or username" on the top of the login box. Any thing else?
Anil C. Sedha
Trusted Contributor

Re: Samba

Elaine,

Save the following in a text file and rename the file as ".reg" instead of ".txt"


REGEDIT4



;Contributor: Tim Small (tim.small@virgin.net)

;Updated: 20 August 1997

;Status: Current

;

;Subject: Registry file to enable plain text passwords in NT4-SP3 and later



[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Rdr\Parameters]

"EnablePlainTextPassword"=dword:00000001

This is in addition to what the others have specified about configuring your system. This registry entry is for the WinNT workstati
If you need to learn, now is the best opportunity
Anil C. Sedha
Trusted Contributor

Re: Samba

Additionally,

You can use the Map Network Drive to map the drive of the unix system as a local shared drive.

Use Windows Explorer -->> Tools --> Map Network Drive.

Don't forget to assign points if find the answers helping you. Many people have tried to help you here.

:-)
If you need to learn, now is the best opportunity
John Poff
Honored Contributor

Re: Samba

Hi Elaine,

The way I have my Samba setup, there is a separate password file for Samba. There is a file named 'smbpasswd' and it is similar to the Unix /etc/passwd file. It stores logins and passwords to validate users getting into Samba. There is a script called mksmbpasswd.sh which will read your /etc/passwd file and make an smbpasswd file for you. Once you have that, you'll need to use the 'smbpasswd' utility to set the passwords in the smbpasswd file. You'll do a 'smbpasswd -e user' to enable the user, and it will prompt you for passwords.

Probably the best way to figure it all out is to get into the Samba docs and read up on it. Samba can be a bit of a pain to configure at first, but once you get it going it really works great. Also, if the smbpasswd machinery seems like too much work, the latest versions of Samba come with a daemon that will let you validate users against a Windows domain server. I haven't tried that yet, but if you go that route I'm sure some of the other local wizards can offer some advice on setting it up.

JP
William Pribble
Frequent Advisor

Re: Samba

I am running the script mksmbpasswd.sh..... how long does it take to compile the new samba password file? It has been running for a while now on K class server.

also I do plan on giving out point to all.

thanks
John Poff
Honored Contributor

Re: Samba

Elaine,

I'm sorry! I should have given you better instructions on using 'mksbmpasswd.sh'. First, do a Control-C, or it will sit there forever. The mksmbpasswd.sh file takes /etc/passwd as input, but you have to redirect it on the command line. You'll also have to redirect the output to the smbpasswd file. Try it like this:

./mksmbpasswd.sh smbpasswd

You'll also need to be in the directory that Samba is expecting to find the smbpasswd file. My Samba installations live in /opt/samba, and my smbpasswd files live in /opt/samba/private. I remember that the mksmbpasswd.sh file usually starts out in some other directory, so I just copy it over to where the smbpasswd file should be so I have it all in one place.

Sorry about that!

JP

Darren Prior
Honored Contributor

Re: Samba

Hi Elaine,

You will find that your NT box will send your NT username and password to the Samba server as soon as you try to connect to it. If this doesn't match details in Samba's password database then your NT box will put up a requester asking for a name and password to connect with. If you look in the Samba logs you should see the attempted connection.

If you now enter a valid username and password you will connect to the share.

My advice is to check the log.smb to see which username is connecting and to try using smbclient to connect from your HP-UX box. Check out the smbclient man page for info.

regards,

Darren.
Calm down. It's only ones and zeros...