LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba password (https://www.linuxquestions.org/questions/linux-software-2/samba-password-152314/)

Mikessu 03-01-2004 03:07 PM

Samba password
 
I have tried to set Samba and I've got client work, but I have problems with server. It always keeps asking password and username when trying to download files from windoze machine and even guest account doesnt work. What have I might be done wrong?

muah 03-02-2004 02:06 AM

Can u paste your smb.conf? One of solutions is to use the same username/password in linux and windows. It doesnt ask for a pw then, just logs u in.

Mikessu 03-02-2004 02:19 PM

Quote:

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/03/01 22:58:39

# Global parameters
[global]
workgroup = KOTI
server string = Mikon kone
security = SHARE
encrypt passwords = Yes
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
dns proxy = No
printer admin = @adm
printing = cups

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No

[print$]
path = /var/lib/samba/printers
write list = @adm root
guest ok = Yes

[pdf-generator]
comment = PDF Generator (only valid users)
path = /var/tmp
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I &

[pdf-screen]
comment = PDF Generator - Screen quality (only valid users)
path = /var/tmp
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &
copy = pdf-generator

[pdf-printer]
comment = PDF Generator - Print quality (only valid users)
path = /var/tmp
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &
copy = pdf-generator

[pdf-prepress]
comment = PDF Generator - PrePress quality (only valid users)
path = /var/tmp
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &
copy = pdf-generator

[MIKKO_JAETUT]
comment = /home/mikko/jaetut
path = /home/mikko/jaetut
guest ok = Yes

[MIKKOMUSIIKK]
comment = /home/mikko/Musiikki
path = /home/mikko/Musiikki
guest ok = Yes
wide links = No

muah 03-02-2004 02:58 PM

You can add
Code:

[global]
guest ok = yes
guest only = yes
guest account = smbguest

and remove
map to guest = bad user

Then you should be able to connect to linux server without asking for pw (except print$ share, there u should specify
guest only = no
public = no
to give ppl with write access a chance to login)


Another option for users is as i mention above to use the same logins/passwords on windows/linux

Mikessu 03-03-2004 09:45 AM

Now when I try to browse smb:/ it just keeps asking password and Windoze machines now dont even see my computer...

muah 03-03-2004 10:13 AM

Paste your new smb.conf
If u added lines i mentioned, are u sure you have user/group smbguest on your computer?

Edit: Also run 'testparm' everytime u change smb.conf to check that there are no errors.

fur 03-03-2004 10:24 AM

Look into 'smbpasswd'


http://us1.samba.org/samba/ftp/docs/...bpasswd.8.html

Mikessu 03-04-2004 05:43 AM

Now I've done following things:
* edited smb.conf as muah told.
* added user & group smbguest
* runned testparm succesfully

Now I can see directories that I've shared but when I try to enter some of them it still asks password.

My configs:
smbusers: http://www.sourcecode.no/pastebin/en...key=1h7grxirz6
smbpasswd: http://www.sourcecode.no/pastebin/en...key=8v30ml3ikx
smb.conf: http://www.sourcecode.no/pastebin/en...&key=jz3lcot0w

muah 03-04-2004 12:38 PM

Well I dont know why it still asks for a password here is my smb.conf

Code:

[global]
  workgroup = workgroup
  server string = Samba Server
  netbios name = Majestic
  security = share
  log level = 1
  log file = /var/log/samba/%m.log
  max log size = 50
  dns proxy = no
  deadtime = 15
 
  guest ok = yes
  guest account = smbguest
  guest only = yes
 
 
  invalid users = root
 
[public]
  path = /home/public
  create mode = 0777
  directory mode = 0777
  writable = yes
  browsable = yes
  public = yes
 
[moviez]
  path = /d/movies
  writable = no
  browsable = yes
  public = yes

I can access \\Majestic and all its shares without password from windows


All times are GMT -5. The time now is 07:25 PM.