LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Small Samba Question! (https://www.linuxquestions.org/questions/linux-general-1/small-samba-question-80565/)

nxny 08-12-2003 02:38 PM

Quote:

Originally posted by kith
I have root - shows encrytped password a user called nobody, which i thikn is the default guest. and then the main user envy with the encrytped password, yet none of the passwords I try work
Can you access your SMB share from your own box while logged on as the windows user in question?

Code:

smbclient -U envy -L localhost
smbclient '\\localhost\sharename' -U administrator -c 'dir'

These commands should return without an error. (Provide envy's password when prompted and substitute with your sharename )

I would backup this file first and remove every line but the one for the user 'envy' from the original, just to keep it clean for the time being.

Once you've determined that your share is working the way it is supposed to be, you would want to try JRandom's directions to logon 'properly' to the win box and then try accessing the share.

kith 08-12-2003 03:32 PM

Ah my windows user (the only user on this box) is simplex however when i am prompted for a password and login, I the username feild is grayed out

JRandom 08-12-2003 03:40 PM

Kith,

The "simplex" username on the windows box would seem to be the problem.

Edit your smb.conf file and uncomment the following line (or add it):

username map = /etc/samba/smbusers

and create the /etc/samba/smbusers file with the following line:

envy = simplex

Restart Samba....


Hope this helps!
--Eric

JRandom 08-12-2003 03:41 PM

My previous post assumes you have a Unix user account called "envy"

--Eric

kith 08-12-2003 03:52 PM

Under which parameter? Shares? Also, what if i change the user name on the windows box to envy? I acutally tryed this and still doesn't seem to work..

JRandom 08-12-2003 03:54 PM

Kith,

I'd put the username map declaration under [global].

If you want to change the Windows box username to envy...that would a great way to test this.

--Eric

JRandom 08-12-2003 03:57 PM

Kith,

Looked over your smb.conf. You also need to uncomment the line:

encrypt passwords = yes

But if you had an encrypted password in the smbusers file, you must have already done this, right?

--Eric

kith 08-12-2003 04:00 PM

It wouldn't matter that I don't have a password for user envy/simplex on the xp box would it?

kith 08-12-2003 04:05 PM

Ok let me explain something. The Freebsd server thats running samaba is called Envy, that is the hostname of the box. the primary user of the box is also called envy. Now, the win XP box hostname is mistakenly called envy also. and the user is Simplex. Client for Microsoft windows is running, there is no password for this box. Now I can see the shares, I have tryed adding the envy = simplex to my smbconfig and it still did not work.

JRandom 08-12-2003 04:11 PM

Ah, XP. Home or professional? As far as network shares go..it shouldn't care at all. XP will give the option to enter a username and password. Odd that your's is grayed out.

Next step. In XP, go to Start->Control Panel->User Accounts.
Click on your username (simplex)
In the upper left, go to manage my network passwords.
Delete any relating to the samba share.
Reboot XP.

Try again!

--Eric

JRandom 08-12-2003 04:13 PM

Oh!

You can't have both boxes called 'envy'. Add this to your smb.conf.


netbios name = envybsd (or something besides envy)

restart Samba.

On the XP box connect to \\envybsd\envy and give it a whirl...

I think when you type \\envy your logging on to your XP box!

--Eric

kith 08-12-2003 04:14 PM

Nothing was in the network passwords box...

- Note, not that this matters, but I don't have a /etc/samba dir, most of my samba files are elseware, like my smb.conf is in /usr/local/etc/smb.conf -- I don't think that matters tho

JRandom 08-12-2003 04:17 PM

Yeah, sorry, I use FreeBSD too. when I say smb.conf, edit you main in /usr/local/etc/smb.conf

--Eric

kith 08-12-2003 04:17 PM

I forgot to mention, I did change the netbios name.. its Envy Samba serv

kith 08-12-2003 04:18 PM

Jran, Do you have Aim, think it would be easier hehe -- eam404 is my sn


All times are GMT -5. The time now is 04:47 PM.