LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Samba Question (https://www.linuxquestions.org/questions/ubuntu-63/samba-question-660453/)

Linuxllent 08-04-2008 05:54 PM

Samba Question
 
I installed Samba and set up my network and all went fine but when I try to connect to my Ubuntu computer the authentication part doesn't go through.....

I enter
domain\username
password

all is correct but it doesn't allow me to enter the server! thanks for the help in advance!

gilead 08-04-2008 05:59 PM

It's not much info to go on. Can you post the error message you get when authentication fails and also check your logs in (probably) /var/log/samba for any error messages please? The contents of /etc/samba/smb.conf will also be helpful.

Linuxllent 08-04-2008 06:13 PM

Quote:

Originally Posted by gilead (Post 3236711)
It's not much info to go on. Can you post the error message you get when authentication fails and also check your logs in (probably) /var/log/samba for any error messages please? The contents of /etc/samba/smb.conf will also be helpful.

here are the smb.conf contents

Quote:

#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentary and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.
#

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = Home
netbios name = Home

# server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
; wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
; name resolve order = lmhosts host wins bcast

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
; interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
; bind interfaces only = true



#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
max log size = 1000
The other log had a bunch of permission denied from the ip I was loging on from...there are no error message, I would double click on a shared file on my ubuntu box and the log in window pops up, I type my username and password but it wouldn't allow me to log on....

gilead 08-05-2008 09:31 PM

You don't have any shares configured - have you had a look through the docs on the Samba site? These are good sources of info:

http://samba.ausics.net/samba/docs/m...TO-Collection/
http://samba.ausics.net/samba/docs/man/Samba-Guide/
http://samba.ausics.net/samba/docs/using_samba/toc.html

Also, if you're getting permission denied errors in the log can you check what is logging them - is it iptables or Samba?

avinash.rao 08-06-2008 06:15 AM

Kindly help setting up Samba for WinXP
 
Hi,

I am trying to setup samba and below are the parameters that i have used in smb.conf file. My requirement is, about 20 winxp users will have to store data on the server. Can i configure the samba server in such a way that, when each user login with their own user id on winxp machine, it should should connect to their home directory on the samba server so that they store data on the server. Also, they should NOT be able to browser other directories.

I am aware that i have create user accounts both in WinXP and the ubuntu server. I am doing this on a ubuntu studio 8.04 - AMD 64!

Sorry forgot to mention that, i am not using any domain controller or ADS, its just a simple workgroup network where all the winxp machines are part of the same workgroup. The windows machines are configured to use DHCP server that runs on the samba server.

I have entered the samba server IP and samba hostname in the lmhosts file on the winxp machine.

# Global parameters
[global]
workgroup = workgroup name
netbios name = samba server name
security = user

[homes]
comment = Home Directories
browseable = yes

Quote:

Originally Posted by Linuxllent (Post 3236719)
here are the smb.conf contents



The other log had a bunch of permission denied from the ip I was loging on from...there are no error message, I would double click on a shared file on my ubuntu box and the log in window pops up, I type my username and password but it wouldn't allow me to log on....


avinash.rao 08-06-2008 11:21 AM

update:

The above configuration didn't work. When i browse the network on the winxp machine, it throws me an error saying i don't have permissions to browse the workgroup. I have updated the smb passwords on the samba server (smbpasswd -a username).

Kindly help

Linuxllent 08-06-2008 12:55 PM

Quote:

Originally Posted by gilead (Post 3238157)
You don't have any shares configured - have you had a look through the docs on the Samba site? These are good sources of info:

http://samba.ausics.net/samba/docs/m...TO-Collection/
http://samba.ausics.net/samba/docs/man/Samba-Guide/
http://samba.ausics.net/samba/docs/using_samba/toc.html

Also, if you're getting permission denied errors in the log can you check what is logging them - is it iptables or Samba?

Ok where can I find the username and password that I should be logging in with to access my ubuntu machine through the network?

gilead 08-06-2008 09:35 PM

It should be the username and password of the user on the Ubuntu box that owns the share.

Linuxllent 08-07-2008 12:08 PM

Quote:

Originally Posted by gilead (Post 3239327)
It should be the username and password of the user on the Ubuntu box that owns the share.

That's the username and password I enter but I keep getting denied...

avinash.rao 08-08-2008 11:01 AM

Hi,

I suggest you read the documentation in http://www.samba.org. This is the official document and it good and elaborate.

Basically, you have to understand, that Samba can behave a PDC, BDC, Standalone server or as a machine in the workgroup. So, you have to configure your samba to play one of these roles.

Try this.

Global Part

Code:
[global]
workgroup = <your_workgroup>
preferred master = No
local master = No
domain master = No
;hosts allow = 192.168.1.0/255.255.255.0
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
null passwords = true
username map = /etc/samba/smbusers
name resolve order = lmhosts bcast wins host
wins support = no
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yesShare part
Example on a dir/share named testsmb, of course you can put your share name

Code:
[testsmb]
path = /home/<yourname>/testsmb
available = yes
browsable = yes
public = yes
writable = no
create mask = 0777

Restart Samba

Code:
sudo /etc/init.d/samba restart

Good Luck!


Quote:

Originally Posted by Linuxllent (Post 3240055)
That's the username and password I enter but I keep getting denied...



All times are GMT -5. The time now is 06:00 PM.