Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Setting up Samba in 14.04

  1. #11
    Join Date
    Feb 2007
    Location
    Albuquerque, NM US
    Beans
    314
    Distro
    Ubuntu Development Release

    Re: Setting up Samba in 14.04

    Morbius1 THANK YOU!
    cheap hardware....LOTS of it

  2. #12
    Join Date
    Dec 2006
    Beans
    Hidden!

    Re: Setting up Samba in 14.04

    I commented out [homes] with a # in front of all lines

    then ran testparm
    username option it says is an old thing.
    So what should be used?

    Code:
    scott@scott-P5QC:~$ testparm
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[printers]"
    Processing section "[print$]"
    Processing section "[Videos]"
    WARNING: The "username" option is deprecated
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions
    
    [global]
    	server string = %h server (Samba, Ubuntu)
    	server role = standalone server
    	map to guest = Bad User
    	obey pam restrictions = Yes
    	pam password change = Yes
    	passwd program = /usr/bin/passwd %u
    	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    	unix password sync = Yes
    	syslog = 0
    	log file = /var/log/samba/log.%m
    	max log size = 1000
    	name resolve order = lmhosts, wins, bcast, host
    	dns proxy = No
    	usershare allow guests = Yes
    	panic action = /usr/share/samba/panic-action %d
    	idmap config * : backend = tdb
    
    [printers]
    	comment = All Printers
    	path = /var/spool/samba
    	create mask = 0700
    	printable = Yes
    	print ok = Yes
    	browseable = No
    
    [print$]
    	comment = Printer Drivers
    	path = /var/lib/samba/printers
    
    [Videos]
    	path = /home/scott/Videos
    	username = scott
    	read only = No
    	guest ok = Yes
    scott@scott-P5QC:~$

  3. #13
    Join Date
    Dec 2006
    Beans
    Hidden!

    Re: Setting up Samba in 14.04

    ALSO, how does smb.cnf work with nautilus shares?
    Are they written into smb.cnf?

    How can I list all my shares?

  4. #14
    Join Date
    Dec 2009
    Beans
    6,767

    Re: Setting up Samba in 14.04

    "username = " was deprecated when Eisenhower was still in Europe so use "valid users = scott". ( That might be a wee bit of an exaggeration )

    nautilus-shares are controlled by samba ( and smb.conf ) but their share definitions are in /var/lib/samba/usershares. For the shares created through Nautilus you can always see what you shared and how you shared them using the following command:
    Code:
    net usershare info --long

  5. #15
    Join Date
    Dec 2006
    Beans
    Hidden!

    Re: Setting up Samba in 14.04

    thanks morbius, so 'valid users'is good to use.

    testparm did not show any problems

    Code:
    scott@scott-P5QC:~$ testparm
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[printers]"
    Processing section "[print$]"
    Processing section "[Videos]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions
    
    [global]
    	server string = %h server (Samba, Ubuntu)
    	server role = standalone server
    	map to guest = Bad User
    	obey pam restrictions = Yes
    	pam password change = Yes
    	passwd program = /usr/bin/passwd %u
    	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    	unix password sync = Yes
    	syslog = 0
    	log file = /var/log/samba/log.%m
    	max log size = 1000
    	name resolve order = lmhosts, wins, bcast, host
    	dns proxy = No
    	usershare allow guests = Yes
    	panic action = /usr/share/samba/panic-action %d
    	idmap config * : backend = tdb
    
    [printers]
    	comment = All Printers
    	path = /var/spool/samba
    	create mask = 0700
    	printable = Yes
    	print ok = Yes
    	browseable = No
    
    [print$]
    	comment = Printer Drivers
    	path = /var/lib/samba/printers
    
    [Videos]
    	path = /home/scott/Videos
    	valid users = scott
    	read only = No
    	guest ok = Yes
    scott@scott-P5QC:~$

  6. #16
    Join Date
    Dec 2009
    Beans
    6,767

    Re: Setting up Samba in 14.04

    Please start your own new topic.

    This section was for pre-released Ubuntu, it's marked as [SOLVED], and is unrelated to your situation.

    When you do post include the output of:
    Code:
    testparm -s
    And specify which "graphical tool" you used. There are several. Some are benign ( system-config-samba ) and some are dangerous ( gadmin-samba ).

    Note: Don't be too obsessed with things in smb.conf not showing up in testparm. Some items are commented out and despite it's name smb.conf is not THE samba configuration file. It's a set of additions and overrides to the default settings of samba. By default testparm shows you the affect smb.conf has on those default settings.

  7. #17
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Setting up Samba in 14.04

    Thread closed, and christian53's post moved to a thread of it's own in General Help.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •