LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-12-2007, 12:05 PM   #1
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Rep: Reputation: 15
samba issues


smb.conf file

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/07/11 08:02:28

[global]
log file = /var/log/samba/log.%m
load printers = yes
name resolve order = lmhosts host wins bcast
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
socket options = TCP_NODELAY
hosts equiv = 192.168.1.41
obey pam restrictions = Yes
admin users = stycaptain@stydendea64
include = /etc/samba/dhcp.conf
auth methods = guest
interfaces = eth1 eth2
hosts allow = 192.168.1.41, 192.168.1.43, 192.168.1.45
encrypt passwords = yes
passwd program = /usr/bin/passwd %u
dns proxy = No
netbios name = stydendea64
server string = %h server
invalid users = root
workgroup = WORKGROUP
os level = 20
valid users = stycaptain
syslog = 0
security = share
panic action = /usr/share/samba/panic-action %d
max log size = 1000

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

[profiles]
comment = Users profiles
path = /home/stycaptain
create mask = 0600
directory mask = 0700
guest ok = Yes

[printers]
comment = All Printers
path = /var/spool/samba
read only = No
create mask = 0700
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[allusers]
comment = All Users
path = /home/shares/allusers
valid users = @users
force group = users
create mask = 0660
directory mask = 0771

now thats my config file for samba if theres anything wrong with it id like to know. now my issues is i cant acess any of the computers on the network. i cant see any of the computers when i go to windows network:WORKGROUP i get this "Sorry, couldn't display all the contents of "Windows Network: workgroup"." now i added the computer ip's in the host tab under network administration is that ok to do to setup a network? also i setup a printer it works on the two hardline tower's but my windows laptop it doesnt work i use the device url and it cant find it. then on my fedoracor 7 laptop it excepts it but when i click print test page nothing happens. how can i get the printer on the two laptops thanks for your help.
 
Old 07-12-2007, 01:11 PM   #2
rgdacosta
Member
 
Registered: Jun 2007
Location: South Africa
Distribution: Linux Mint,Fedora, openSUSE, RHEL, SLES, Scientific Linux
Posts: 71

Rep: Reputation: 25
samba issues

Are you able to ping the Windows machine?

What happens when you smbclient -L //windows_machine_ip -U windows_user
 
Old 07-12-2007, 02:50 PM   #3
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
stycaptain@stydendea64:~$ smbclient -L//192.168.1.45
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
cli_rpc_pipe_open: cli_nt_create failed on pipe \srvsvc to machine 192.168.1.45. Error was NT_STATUS_ACCESS_DENIED
Error returning browse list: NT_STATUS_ACCESS_DENIED
session request to 192.168.1.45 failed (Called name not present)
session request to 192 failed (Called name not present)
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------

Workgroup Master
--------- -------



stycaptain@stydendea64:~$ smbclient -L//192.168.1.45 -U stycaptain
Unknown parameter encountered: "hosts equiv"
Ignoring unknown parameter "hosts equiv"
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
cli_rpc_pipe_open: cli_nt_create failed on pipe \srvsvc to machine 192.168.1.45. Error was NT_STATUS_ACCESS_DENIED
Error returning browse list: NT_STATUS_ACCESS_DENIED
session request to 192.168.1.45 failed (Called name not present)
session request to 192 failed (Called name not present)
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------

Workgroup Master
--------- -------
thats what i got doing that

now does samba only work forlinux to windows or is just as good for linux to linux
 
Old 07-18-2007, 10:10 AM   #4
rgdacosta
Member
 
Registered: Jun 2007
Location: South Africa
Distribution: Linux Mint,Fedora, openSUSE, RHEL, SLES, Scientific Linux
Posts: 71

Rep: Reputation: 25
It definitely works linux-linux!

thing:~ # smbpasswd -a ricardo
New SMB password:
Retype new SMB password:
Added user ricardo.
thing:~ # smbclient -U ricardo //127.0.0.1/downloads
Password:
Domain=[THING] OS=[Unix] Server=[Samba 3.0.23d-6-1083-SUSE-SL10.2]
smb: \>

The user account that you are using needs to exist in the smbpasswd file. To do this use smbpasswd -a unix_user_name

You should get to a samba prompt as above.
 
Old 07-18-2007, 11:23 AM   #5
yuri_d
LQ Newbie
 
Registered: Mar 2006
Posts: 26

Rep: Reputation: 15
It seems that your OS level is too low. I usually set it to 64.
Other line that I found useful and which is missing from your conf:

smb passwd file = /etc/samba/smbpasswd (use your own path here)

In your config only user stycaptain can access your server globally, I wonder whether you really meant it.

Overall my advice is not to use swat and start with a very simple config - 6-10 lines and after it works make it more sofisticated.

Hope this helps and good luck!
 
Old 07-19-2007, 11:38 AM   #6
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
ok thanx but what would be a simple smb config file like whts the minimum i need to specify in the config file to acess the computers.
 
Old 07-20-2007, 07:46 AM   #7
yuri_d
LQ Newbie
 
Registered: Mar 2006
Posts: 26

Rep: Reputation: 15
back up your /etc/samba

[global]
netbios name = stydendea64

workgroup = WORKGROUP

encrypt passwords = yes

smb passwd file = /etc/samba/smbpasswd


[test]
comment = For testing only, please
path = /local/samba/test
read only = no
guest ok = yes


then
# mkdir /local/samba/test
# chmod 777 /local/samba/test
# smbpasswd -w { your root password }

//edit: line removed as irrelevant

This should be guaranteed to work.
Then start playing

Last edited by yuri_d; 07-20-2007 at 07:59 AM.
 
Old 07-20-2007, 02:05 PM   #8
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
i config file like you said then did smbpasswd -w my root password and go error no ldap admin specified and ldap i dont think is installedon my system
 
Old 07-23-2007, 09:58 AM   #9
yuri_d
LQ Newbie
 
Registered: Mar 2006
Posts: 26

Rep: Reputation: 15
I wonder why it wants LDAP,
maybe it is looking at another config file?

To be sure you can add line
passdb backend = smbpasswd
In theory, you only should need workgroupname for it to work

If your original question was about connecting to a windows host(s) from a linux laptop, in this case you do not need to run samba server. You need to run samba client. I have never done this and cannot advise, sorry.
So you can probably abandon the server setup altogether if you do not need to serve files from this laptop.
Check out samba.org - the best source of documentation for all setups and flavours, especially "Samba 3 by example"
 
Old 07-23-2007, 06:23 PM   #10
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
ok i guess u didnt get it lol my linux samba config file is on mydesktop computer and windows is on my laptop lol and i want to beable to open save upload download files etc. from serer to desktop and desktop to server
 
Old 07-23-2007, 06:24 PM   #11
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
i already tried the website lol i personaly hate networking lol
 
  


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
Samba issues metallica1973 Linux - Software 0 08-04-2006 09:34 PM
samba issues cham0169 Linux - Software 1 04-11-2005 08:37 AM
Samba Issues lflores Linux - Networking 20 09-25-2003 09:29 PM
Samba Issues jetfanroy Linux - Newbie 10 07-29-2003 08:25 AM
Samba issues chris Linux - General 4 11-22-2001 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration