LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-04-2008, 05:54 PM   #1
Linuxllent
LQ Newbie
 
Registered: Jan 2008
Location: USA
Distribution: Ubunutu 9.10
Posts: 18

Rep: Reputation: 0
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!
 
Old 08-04-2008, 05:59 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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.
 
Old 08-04-2008, 06:13 PM   #3
Linuxllent
LQ Newbie
 
Registered: Jan 2008
Location: USA
Distribution: Ubunutu 9.10
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by gilead View Post
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....
 
Old 08-05-2008, 09:31 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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?
 
Old 08-06-2008, 06:15 AM   #5
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Rep: Reputation: 30
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 View Post
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....

Last edited by avinash.rao; 08-06-2008 at 07:31 AM.
 
Old 08-06-2008, 11:21 AM   #6
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Rep: Reputation: 30
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
 
Old 08-06-2008, 12:55 PM   #7
Linuxllent
LQ Newbie
 
Registered: Jan 2008
Location: USA
Distribution: Ubunutu 9.10
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by gilead View Post
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?
 
Old 08-06-2008, 09:35 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It should be the username and password of the user on the Ubuntu box that owns the share.
 
Old 08-07-2008, 12:08 PM   #9
Linuxllent
LQ Newbie
 
Registered: Jan 2008
Location: USA
Distribution: Ubunutu 9.10
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by gilead View Post
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...
 
Old 08-08-2008, 11:01 AM   #10
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Rep: Reputation: 30
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 View Post
That's the username and password I enter but I keep getting denied...

Last edited by avinash.rao; 08-10-2008 at 12:49 AM.
 
  


Reply



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 Question jbraum Linux - Networking 3 10-26-2004 11:11 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Samba Question. gsmonk Linux - Networking 5 03-03-2003 10:08 AM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM
Samba question RecoilUK Linux - Networking 4 12-09-2001 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:31 PM.

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