LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-26-2004, 01:10 PM   #31
Kestrel67
LQ Newbie
 
Registered: Oct 2004
Location: Vancouver, BC
Posts: 6

Rep: Reputation: 0

I think I had the same problem when I setup samba - I think the fix was to add the samba guest user to the user list of my system. Have to made sure the guest account is active on your machine?

HTH - I'm a complete Linux noob so what I did may or may not be valid - the machine's on a private firewalled network anyhow.
 
Old 10-26-2004, 01:11 PM   #32
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

Original Poster
Rep: Reputation: 30
to add a guest account to the client machine??
 
Old 10-26-2004, 03:08 PM   #33
Kethinov
Member
 
Registered: Oct 2003
Location: ESU, Student Teaching 5th Grade
Distribution: Ubuntu
Posts: 118

Rep: Reputation: 15
This is my conf in Debian. I use it to share files WITH username/password.

My share shows up on everyone's my network places in windows though.

Comments preserved as they might help you tweak stuff.

Code:
#
# 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 many any basic syntactic 
# errors. 
#

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

[global]

## Browsing/Identification ###

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

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

# 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


#### Debugging/Accounting ####

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

# Put a capping on the size of the log files (in Kb).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
;   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
# package for details.
security = user

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
   passdb backend = tdbsam guest

   obey pam restrictions = yes

;   guest account = nobody
#   invalid users = root

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
;   unix password sync = no

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
# sending the correct chat script for the passwd program in Debian Potato).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
;   pam password change = no


########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
;   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;   printing = cups
;   printcap name = cups

# When using [print$], root is implicitly a 'printer admin', but you can
# also give this right to other users to add drivers and set printer
# properties
;   printer admin = @ntadmin


######## File sharing ########

# Name mangling options
;   preserve case = yes
;   short preserve case = yes


############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
   socket options = TCP_NODELAY

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
;   domain master = auto

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

#======================= Share Definitions =======================

[kethimux]
path = /
writable = yes
 
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no

[printers]
   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = no
   writable = no
   create mode = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
;   write list = root, @ntadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   writable = no
;   locking = no
;   path = /cdrom
;   public = yes

# The next two parameters show how to auto-mount a CD-ROM when the
#	cdrom share is accesed. For this to work /etc/fstab must contain
#	an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#	is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom
 
Old 10-26-2004, 03:11 PM   #34
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

Original Poster
Rep: Reputation: 30
Thanks Ill give it a try when i finish working on one of my other boxes... I figure if at least I can get it functioning I could just make the username user and password pass or whatever
 
Old 10-26-2004, 04:17 PM   #35
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

Original Poster
Rep: Reputation: 30
Still aint able to access it on the XP machine... ill try reinstalling samba...
 
Old 10-26-2004, 04:29 PM   #36
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

Original Poster
Rep: Reputation: 30
With the code I am prompted for a password on the network, of couirse, and since the username is dimmed out and I only have a password thing... How do i change passwords or edit users/passwords with the code how their stored in kethinovs post? Other than using the GUI in Samba since that isnt functionign right

When attempting to connect to itself on the same linux box through the LAN browser I am prompted for a usernand password and niether is dimmed out.... So how do I get ti functioning with XP so username isnt dimmed? When tryign to set a username and password using the menu in Samba I add the user but it never appears on the list next to add and edit like....... So how else can I add a user or edit a user?

Last edited by TuxFreak; 10-26-2004 at 04:39 PM.
 
Old 10-26-2004, 07:27 PM   #37
Kestrel67
LQ Newbie
 
Registered: Oct 2004
Location: Vancouver, BC
Posts: 6

Rep: Reputation: 0
Because of the architecture, Samba does not explicitly associate user-password pairs. If you give it a password, it encrypt the password, then compare it to its authorized user-password combinations. If this fails, it will try to revert to anonymous/guest logins.

I didn't see any network shares explicitly defined in kethinov's post. Make sure those are defined.

Does the user you have associated with your anonymous share actually have permission to access that directory?

Assuming you have logging turned on, have you tried checking the samba log? It should be in /var/log/samba. (Or somewhere in /var/log)

Quote:
Originally posted by TuxFreak
With the code I am prompted for a password on the network, of couirse, and since the username is dimmed out and I only have a password thing... How do i change passwords or edit users/passwords with the code how their stored in kethinovs post? Other than using the GUI in Samba since that isnt functionign right

When attempting to connect to itself on the same linux box through the LAN browser I am prompted for a usernand password and niether is dimmed out.... So how do I get ti functioning with XP so username isnt dimmed? When tryign to set a username and password using the menu in Samba I add the user but it never appears on the list next to add and edit like....... So how else can I add a user or edit a user?
 
Old 10-26-2004, 07:49 PM   #38
Chrax
Member
 
Registered: Apr 2004
Distribution: Dapper
Posts: 167

Rep: Reputation: 31
If I'm getting you, this is something like what you'll want (it works for me across an awful network). Just edit it for your friends' IPs and share directory. Hope this helps.

Code:
[global]
   workgroup = MSHOME
   server string = tuxserv
   security = share
   hosts allow = 192.168.0
   log file = /var/log/samba.%m
   max log size = 50
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   dns proxy = no

[share]
   comment = Share
   path = /share/dir
   read only = yes
   writable = no
   guest ok = yes
   only guest = yes
   public = yes
 
Old 10-26-2004, 08:05 PM   #39
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

Original Poster
Rep: Reputation: 30
When using the IP address they have no login screen its all through guests....
 
Old 10-26-2004, 08:09 PM   #40
TuxFreak
Member
 
Registered: Oct 2004
Posts: 304

Original Poster
Rep: Reputation: 30
nevermind about that issue, I didn't hit the post button a hour or two ago... I actually have it working now, ti was an issue of having the folder placed in the root folder, with the root permissions weren't allowing it so I simply made a new folder. When I type in the IP address, Samba runs marvelous now when connecting on XP but when entering its host name im prompted for a password?!?!? Its all through guests, but whenever I do the host the username is dimmed out and the password field is editable but I have no users set since its all guests and doign the IP works fine but I would like to do the hostname if possible
 
  


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
Installing from HTTP or FTP NintendoFan Red Hat 2 12-21-2004 03:07 PM
I can connect to FTP but not HTTP xenoman Linux - Networking 1 03-27-2004 02:15 PM
writing from ftp/http to CD? krome Red Hat 0 11-17-2003 08:31 PM
ftp works but http doesn't :/ bsprogs Linux - Newbie 1 10-10-2003 11:03 PM
http vs. ftp mikeshn Linux - Networking 3 05-29-2002 01:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:18 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