Can't dance the Samba!


 
Thread Tools Search this Thread
Operating Systems Solaris Can't dance the Samba!
# 1  
Old 04-06-2004
Can't dance the Samba!

Hi all,

Firstly this is my very first attempt at installing and using Samba and only have a basic grasp of how it works....

Earlier today I installed Samba 3.0.2 under Solaris 9 (Sun Ultra 60) for the purpose of sharing my home directory on the Sun with my PC. Following the instructions at www.blastwave.org and using:

pkg-get install samba

I installed samba in /opt/csw/

I have only 2 computers on the "network" - the Sun Ultra 60 and a PC running Windows XP.

I configured the smb.conf file as follows:

<snip>

[global]
workgroup = myhome
netbios name = localhost
server string = Samba server on Sun Ultra 60/Solaris 9
logfile = /var/log/samba/%m.log
security = user
encrypt passwords = yes
smb passwd file = /opt/csw/etc/samba/private/smbpasswd
hosts deny = ALL EXCEPT 192.168.7.4 127.

[cdrom]
path = /mnt/cdrom
read only = yes
guest ok = yes

[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664

<snip>

I then added an account and password, and enabled it using:

smbpasswd -a dopey
Password: *****
Password again: *****

and then enabled the account using:

smbpasswd -e dopey

Now, I can see the share in Explorer on my PC, but when I enter the username and password, windows simply returns the user/pass dialogue box once more, as though I've entered the user or password incorrectly (which I have not!)

The log files that are in /var/log/samba are all empty, although there is a file there called

mypcsname.log

Can anyone advise what it is I might have done wrong?

Thanks in advance for any help!
# 2  
Old 04-06-2004
never used smbpasswd for samba.

but i do use samba in a active directory env. so anything trying to get a samba share has to authenticate to the AD server first.

of course this all happens behind the sheets and the user never knows anything about it.

you could also try ditching the smbpasswd and map the windows username to a unix server name in user.map

example of user.map:

unix_username = windows_username
IE: optimus_p = james_smith

to use that you have to add the following line to smb.conf

username map = /usr/local/samba/lib/user.map

EDIT:
lastly are you starting samba as a service or as a ondemand type of dohicky? i have it as a service thingymabober in the /etc/inetd.conf
# 3  
Old 04-06-2004
If you're using smbpasswd to set a password, make sure it's the same as your Windows domain (or local machine, whoever you log into your Windows box with) account.

The user and the password have to match up. For example, if my Windows user name is LF, I should have a user "LF" in Unix-land with the same smbpasswd (but not necessarily the same system passwd!). And remember the joys of Windows workgroups and/or domains. You may need to specify (when logging in to the Samba share) samba_machine_name\userid, then password.

Samba does also have the ability to do translation (Unix UID -> Windows domain user). So I could map LF above to a user named mike on my Unix box. When LF came in from Windows, it would authenticate and create/read/write files as mike.

I cringe to say it, but I've always used Webmin to administer my Samba shares at work, and I don't use it at home.
# 4  
Old 04-07-2004
Thanks for your help Optimus_P and LivinFree!

I don't quite understand what I've done but, after changing the smb.conf as per the article below (with some minor mods) and after setting the WINS address to that of my SAMBA server, I can now share files! Which is where I wanted to be!

http://www-106.ibm.com/developerwork.../l-samba3.html

The only problem now is understanding WHY it now works!

Thanks again Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Ubuntu

Samba Help

All; I've done this before, but sure I'm typing in the wrong search terms, so not finding the help I need. What I have to do: Set up Samba, smb.conf, smbclient, fstab and all other settings so I see both the Windows and Linux servers and their shares in the network, via Samba. It's... (19 Replies)
Discussion started by: TBotNik
19 Replies

2. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

3. UNIX for Dummies Questions & Answers

SAMBA

currently, we are using SAMBA for our ftp way. can SAMBA be encrypted aka sftp ? (2 Replies)
Discussion started by: lawsongeek
2 Replies

4. UNIX for Dummies Questions & Answers

Samba

after creating username/passwd, vi /usr/lib/smb.conf file comment = dropoff location path = /tmp/droloc browsable = No available = yes public = no writable = yes printable = no create mode = 777 valid users = tjmann,palexander,bmartin,.... instead of using... (2 Replies)
Discussion started by: tjmannonline
2 Replies

5. UNIX for Dummies Questions & Answers

samba

hi, i have 2 raids connected via 2 servers to a third server with a third raid. the first 2 export via nfs to the third so that the third has all the data viewable on it. previously i was able to then use samba to export to our macs. i don't recall anything changing, but now i can't view... (0 Replies)
Discussion started by: user23
0 Replies

6. UNIX for Dummies Questions & Answers

Samba help

Hey. I have a question about adding users and maping theirs dirictorys. Main Folder | -User1 Folder -User2 Folder -User3 Folder ...... How can I add this users to have folders in the Main Folder ? any simple script? And I... (0 Replies)
Discussion started by: net555
0 Replies

7. UNIX for Dummies Questions & Answers

Why use Samba?

Hi, I am sorry I am total dummy in Unix. I am starting to explore a thing call "Samba". From my initial and rough finding, I think Samba is only useful in providing Print services to PC platform users. That is to say, The Unix machine which has Samba installed, is able to provide print... (3 Replies)
Discussion started by: champion
3 Replies

8. UNIX for Dummies Questions & Answers

Need Samba Help

Hi, I am very new to Unix, do know some RedHat linux. I am wanting to install samba on my unix machine. Not sure where to start, any help would be very much appreciated. Thanks, Chris Lewis (4 Replies)
Discussion started by: lewy33
4 Replies

9. Programming

Samba 2.2.4

Has any setup samba 2.2.4 inside of unix ver 11.0, i am trying to mount a nfs mount on a w2k, and wxp box, and i was told that i had to upgrade to sambe 2.2.4, but the c compiler on ver 11.0 isnt ansii compatable, I could please use any help or directions on this matter... thanks (0 Replies)
Discussion started by: marvin51796
0 Replies
Login or Register to Ask a Question