LinuxQuestions.org
Visit Jeremy's Blog.
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 11-03-2003, 02:14 PM   #1
jonabyte
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Slackware, Ubuntu
Posts: 31

Rep: Reputation: 15
Win98 cannot acces share on Samba


Hey all

I have got a nt domain and 25 users with mixed 98-xp, I have setup a samba server on rh9.
I can see the computer in net neighbourhood. I can double click the samba computer and see the shares, when I try to access the share it wants a password. I have tried the root pass, the pass for the one user setup on rh9, as well as many others, but no luck. Any ideas? Below is the smb.conf.
Thanks

# Global parameters
[global]
workgroup = CSD
netbios name = SAMBA
server string = samba
security = DOMAIN
encrypt passwords = Yes
obey pam restrictions = Yes
password server = Server
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
guest ok = Yes
printing = cups

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[data]
path = /data
valid users = %S
read only = No
hosts allow = 10.0.0.
 
Old 11-03-2003, 03:05 PM   #2
nightjar
Member
 
Registered: May 2002
Location: Argentina
Distribution: Mandrake 9.2
Posts: 177

Rep: Reputation: 30
Need you a pass?
If you think that it's not necessary then set security = share
and...restart samba
 
Old 11-04-2003, 08:01 AM   #3
jonabyte
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Slackware, Ubuntu
Posts: 31

Original Poster
Rep: Reputation: 15
Already tried that, but I could not access the Samba server, I got a windows error stating that the network path could not be found, even though the server appears on network neighbourhood.
 
Old 11-04-2003, 02:24 PM   #4
jjohnston62
Member
 
Registered: Aug 2003
Location: Minnesota, USA
Distribution: RedHat, Suse
Posts: 106

Rep: Reputation: 15
First of all, go through the samba docs to make sure your security is actually set how you want it. You don't mention whether you want to use the authentication within the NT domain (joining your samba server to that domain), or if you're expecting to use local authentication.

If you're using local authentication, you need to make sure that you've got both a linux user and a samba user created and that the mappings are correct.


Jon J.
 
Old 11-04-2003, 02:37 PM   #5
nightjar
Member
 
Registered: May 2002
Location: Argentina
Distribution: Mandrake 9.2
Posts: 177

Rep: Reputation: 30
Quote:
Originally posted by jonabyte
Already tried that, but I could not access the Samba server, I got a windows error stating that the network path could not be found, even though the server appears on network neighbourhood.
Is /data
a real path?

I give you the Global parameters of my samba

# Global parameters
[global]
log file = /var/log/samba/log.%m
dns proxy = No
netbios name = XXXXXXX (the name of your)
server string = Samba Server %v
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
printing = cups
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
unix password sync = Yes
workgroup = smooth
os level = 20
printcap name = cups
security = share
passwd program = /usr/bin/passwd %u
max log size = 50

[jorge]
path = /home/jorge
read only = No
create mask = 0777
guest only = Yes
guest ok = Yes
browseable = yes
[root]
path = /
read only = No
create mask = 0777
guest only = Yes
guest ok = Yes
browseable = yes

you can add printers, etc

After that run testparm

and then restart samba

/etc/rc.d/init.d/smb restart
 
Old 11-07-2003, 11:31 AM   #6
jonabyte
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Slackware, Ubuntu
Posts: 31

Original Poster
Rep: Reputation: 15
Hi there
Yes I a pretty sure thats the way I want the security set (it was the only was the I could enter the samba server to see the shares), and I was successful in joining the NT domain.
When you say both samba and linux user, do I need the user name and pass the same in the NT domain, (ie use my win98/nt user name and pass that I use to logon to the domain).
And, yes the path does exist.
Thanks
 
Old 12-02-2003, 12:15 AM   #7
mjrdzine
LQ Newbie
 
Registered: Sep 2003
Location: Texas
Distribution: Suse 8.2x
Posts: 11

Rep: Reputation: 0
i think i lost the response i tried to send so pardon me if i actually respond twice. I think what jjohnston62 was suggesting is that you need to try creating a linux user and then create a samba user with the same name/pswd You use the command smbuseradd (or some thing very close to that) It will reply back with directions for the proper syntax. Sorry i can't be more detailed, my memory is 2 steps closer to bed than my body. Hope i helped.
 
Old 12-02-2003, 08:04 AM   #8
paul.nel
Member
 
Registered: Nov 2003
Location: Cape Town
Distribution: Gentoo, Redhat 9, SuSE 9.0, 9.2, Win XP
Posts: 149

Rep: Reputation: 15
Also remember that the samba user that the Windows machines uses to log into the linux box should have access privilages on the shared linux directories. Ie, if you created the shared directories on the linux box as root, your samba user will probably not have access. If this is a problem, you can change your directory privilages with chmod or change ownership with chown.

Hope this helps
p.n

Last edited by paul.nel; 12-02-2003 at 08:08 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
lost acces to share folders dareino Slackware 4 05-01-2004 12:09 AM
Cannot see Samba share through VPN tunnel from win98 client gaagaagui Linux - Software 1 01-19-2004 05:25 PM
Can't connect via Win98 on Samba Share sudhashen Linux - Software 1 10-16-2003 11:15 AM
Can't acces NFS share simonwindt Debian 5 10-06-2003 03:58 AM
Same old Problem, Win98 cannot access Samba share! mutantjazz Linux - Software 12 11-13-2002 10:51 AM


All times are GMT -5. The time now is 12:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration