LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   NT_STATUS_LOGON_FAILURE fedora 10 with latest samba (http://www.linuxquestions.org/questions/linux-server-73/nt_status_logon_failure-fedora-10-with-latest-samba-730589/)

linux hates me 06-04-2009 03:39 AM

NT_STATUS_LOGON_FAILURE fedora 10 with latest samba
 
I just installed samba and the smb.conf is as follows
Code:

[global]
  workgroup = NUS
  valid users = Admin,Tech
  read only = no
  socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
  netbios name = kiska
  server string = Samba %v on (%L)
  security = user
  hosts allow = 192.168.
  load printers = yes
  printcap name = /etc/printcap
  printing = cups
  cups options = raw
  log file = /var/log/samba/%m.log
  max log size = 50
  passdb backend = tdbsam
  local master = yes
  os level = 33
  domain master = yes
  preferred master = yes
  wins support = no
  dns proxy = no

[homes]
  comment = [Insert Title Here]
  browseable = no
  writeable = yes

[printers]
  comment = All Printers
  path = /usr/spool/samba
  browseable = No
  guest ok = No
  writable = No
  printable = Yes

[businesses]
        path = /home/businesses
        read only = no

I have added a user via

Code:

smbpasswd -a Admin
smbpasswd -e Admin

then I enter

Code:

smbclient //kiska/Admin
enter root's password:
session setup failed: NT_STATUS_LOGON_FAILED

I put in the Admin password and the root's password and neither work. I keep getting that message no matter what I do.

any Ideas

chitambira 06-04-2009 04:21 AM

you need to add root as well, and use the same password as the unix password.
# smbpasswd -a root

Quote:

smbclient //kiska/Admin
means you are connecting to a share called Admin, But in your case you dont have that share. If you want to connect as a specific user, you use -U option
If you want to connect to the server, instead, just do:
Quote:

# smbclient //kiska/businesses -U Admin (to connect to share 'businesses'as admin)
# smbclient //kiska/businesses -U root (to connect to share 'businesses' as root)

linux hates me 06-04-2009 04:35 AM

ok That worked beautifully
now that I have that out of the way, I want to figure out how to see the share "businesses" on my windows xp and vista machines. right now they are not visible in "my network places"

thanx for any imput

linux hates me 06-04-2009 04:40 AM

here is an update of my smb.conf file if it helps any

Code:

[global]
        log file = /var/log/samba/%m.log
        load printers = yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        null passwords = yes
        domain master = yes
        hosts allow = 192.168.
        passdb backend = tdbsam
        dns proxy = no
        netbios name = Kiska
        cups options = raw
        writable = yes
        server string = Samba %v on (%L)
        printing = cups
        local master = yes
        workgroup = NUS
        os level = 33
        valid users = Admin,Tech
        printcap name = /etc/printcap
        max log size = 50
        interfaces =  eth0 lo 192.168.1.1


[IPC$]
    path = /tmp
    hosts allow = 10.143.0.0/16, 127.0.0.1, 10.159.0.0/16, 10.150.0.0/16
    hosts deny = 0.0.0.0/0


[homes]
  comment = [Insert Title Here]
  browseable = no
  writeable = yes

[printers]
  comment = All Printers
  path = /usr/spool/samba
  browseable = No
  guest ok = No
  writable = No
  printable = Yes

[businesses]
        valid users = Admin,Tech
        public = yes
        path = /home/businesses
        allow hosts = 192.168.
        writeable = yes
        readable = yes
        guest ok = yes


chitambira 06-04-2009 04:49 AM

from windows:
Quote:

start --> run --> type: \\kiska\
or:
Quote:

start --> run --> type: cmd --> in command prompt, type: net use M: \\kiska\businesses
if you go to 'My Computer, you should be able to see a drive M: which is your business share

linux hates me 06-04-2009 04:54 AM

in both cases it told me that there was no such directory as \\kiska or that it couldnt find that directory or server

chitambira 06-04-2009 04:54 AM

Quote:

domain master = yes
local master = yes
is this server a domain controller for your domain? If so, are the windows computers joined to the domain?
Can you reach this server form windows (# ping kiska)? is it in the dns? if not, can you ping it with its ip address from windows (ping 192.168.x.x)? if so then try;
net use M: \\192.169.x.x\businesses

linux hates me 06-04-2009 04:58 AM

I dont think that the linux box is the domain controller. but what does the domain controller do?

the pings came back perfectly

also I just tried "smbclient -L kiska" gave the password and this popped up

Domain=[NUS] OS=[Unix] Server=[Samba 3.2.11-0.30.fc10]
tree connect failed: NT_STATUS_ACCESS_DENIED

hope this proves to be an insight

chitambira 06-04-2009 05:23 AM

its denied because you are trying to connect as a windows user (who is not added as a samba user)
i think you need to study more about samba, otherwise your aproach will not make you understand the bigger picture.
You didnt answer all my questions though
Quote:

net use M: \\192.169.x.x\businesses /user:NUS\Admin
in windows command prompt ???

linux hates me 06-04-2009 05:29 AM

Quote:

Originally Posted by chitambira (Post 3562688)
in windows command prompt ???

no the smbclient... was all in the linux box.

in cmd I typed "net view \\kiska" that didnt bring up anything

Quote:

net use M: \\192.169.x.x\businesses /user:NUS\Admin
that code in cmd didnt work either. it said "no network name found"

I also tried in cmd "net view \\192.168.10" its response to that is "access denied"

linux hates me 06-04-2009 05:38 AM

ha ha!

I realized I needed to put "users = Admin" under the [businesses] section. now your mount drive command worked. is there any way to make the computer visible on my network places though. The people I work for like to have it simple and I don't want to have to mount the drive on every single computer


All times are GMT -5. The time now is 10:07 AM.