+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
*nix Thread, bl**dy samba! in Technical; I want to share files between 2 ubuntu 8.10 boxes and a mac. I thought samba would be best, but ...
  1. #1
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    111

    bl**dy samba!

    I want to share files between 2 ubuntu 8.10 boxes and a mac. I thought samba would be best, but I am completely failing to set it up. I want to share the homedir on each ubuntu box.

    Here is what I have tried

    1) Use Gnome GUI method to create a folder and share it.

    2) edit smb.conf manually and specify the shares

    3) use webmin to add the shares

    I still cannot see any shares on any computer, either by IP or NETBIOS name, and yes they are all in the same workgroup.

    The share is set to be browseable and read only, with one samba user created and enabled with a password.


    Does anyone have any idea how to get this to work, or would it be better to use AFP or NFS? I might give up soon and use FTP

    This is the smbclient output
    smbclient --list=127.0.0.1
    Enter user's password:
    Domain=[DESKTOP] OS=[Unix] Server=[Samba 3.2.3]

    Sharename Type Comment
    --------- ---- -------
    IPC$ IPC IPC Service (desktop server (Samba, Ubuntu))
    print$ Disk Printer Drivers
    Domain=[DESKTOP] OS=[Unix] Server=[Samba 3.2.3]

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

    Workgroup Master
    --------- -------
    PSI DESKTOP
    smbclient --list=vm
    Enter user's password:
    Domain=[VM] OS=[Unix] Server=[Samba 3.2.3]

    Sharename Type Comment
    --------- ---- -------
    print$ Disk Printer Drivers
    homes Disk
    IPC$ IPC IPC Service (vm server (Samba, Ubuntu))
    user Disk Home directory of user
    Domain=[VM] OS=[Unix] Server=[Samba 3.2.3]

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

    Workgroup Master
    --------- -------
    PSI DESKTOP
    Last edited by somabc; 13th November 2008 at 11:22 PM.

  2. #2

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    199
    I do all mine by hand. I just edit the smb.conf and start samba.

    On the other machine I dont need to do anything apart from browse the network.

    you need to make sure the os level = has a different number for each smb.conf

    Code:
    robert@oasis ~ $ smbclient --list=127.0.0.1
    Password: 
    Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.32]
    
            Sharename       Type      Comment
            ---------       ----      -------
            Robert          Disk      Test Area2
            TV3             Disk      TV3
            IPC$            IPC       IPC Service (Samba 3.0.32)
    Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.32]
    
            Server               Comment
            ---------            -------
            OASIS                Samba 3.0.32
    
            Workgroup            Master
            ---------            -------
            WORKGROUP            OASIS
    Want me to send you the smb.conf to look at?

  3. #3
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    111
    I seem to be missing the SERVER section?

  4. #4

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    199
    Code:
     #Global parameters
    [global]
            workgroup = workgroup
            log file = /var/log/samba/%m.log
            max log size = 50
            socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
            printcap name = /etc/printcap
    os level = 66
    hide unreadable = yes
    hide dot files = yes
    
    
    printing = cups
    cups options = raw
    
    wins support = yes
    
    [Robert]
            comment = Test Area2         
            path = /home/robert/new
            valid users = @users
            force user = robert
            force group = users
            read only = No
            create mask = 0644
            directory mask = 0777
            writeable = yes             
    
    [TV3]            
            comment = TV3           
            path = /home/robert/NZB/unpacked
            valid users = @users
            force user = robert
            force group = users
            read only = No
            create mask = 0644
          directory mask = 0777           
            writeable = yes               
            browseable=yes

  5. #5
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    111
    This is mine just now,

    Code:
    sudo testparm /etc/samba/smb.conf
    Load smb config files from /etc/samba/smb.conf
    Processing section "[printers]"
    Processing section "[print$]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions
    
    [global]
    	workgroup = PSI
    	server string = %h server (Samba, Ubuntu)
    	map to guest = Bad User
    	obey pam restrictions = Yes
    	passdb backend = tdbsam
    	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* .
    	username map = /etc/samba/smbusers
    	unix password sync = Yes
    	syslog = 0
    	log file = /var/log/samba/log.%m
    	max log size = 1000
    	dns proxy = No
    	usershare allow guests = Yes
    	panic action = /usr/share/samba/panic-action %d
    	comment = Home Directories
    	valid users = bryan
    
    [printers]
    	comment = All Printers
    	path = /var/spool/samba
    	create mask = 0700
    	printable = Yes
    	browseable = No
    
    [print$]
    	comment = Printer Drivers
    	path = /var/lib/samba/printers
    Last edited by somabc; 14th November 2008 at 12:43 AM.

  6. #6
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    111
    DOH looks like I forgot to uncomment ;[Homes] duh! Still not working though.

    Code:
    Load smb config files from /etc/samba/smb.conf
    Processing section "[homes]"
    Processing section "[printers]"
    Processing section "[print$]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions
    
    [global]
    	workgroup = PSI
    	server string = %h server (Samba, Ubuntu)
    	map to guest = Bad User
    	obey pam restrictions = Yes
    	passdb backend = tdbsam
    	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* .
    	username map = /etc/samba/smbusers
    	unix password sync = Yes
    	syslog = 0
    	log file = /var/log/samba/log.%m
    	max log size = 1000
    	dns proxy = No
    	usershare allow guests = Yes
    	panic action = /usr/share/samba/panic-action %d
    
    [homes]
    	comment = Home Directories
    	valid users = bryan
    
    [printers]
    	comment = All Printers
    	path = /var/spool/samba
    	create mask = 0700
    	printable = Yes
    	browseable = No
    
    [print$]
    	comment = Printer Drivers
    	path = /var/lib/samba/printers
    Last edited by somabc; 14th November 2008 at 12:46 AM.

  7. #7

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    199
    try adding another section [test] and point it to /test or something copying the stuff from mine (changing or commenting out the user/group stuff)

    also, i dont see a os level = xx on yours, im not sure if thats an important line?

  8. #8

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    199
    just thinking also, have you added samba users?

    Code:
    oasis ~ # smbpasswd -a new_user
    New SMB password:
    Retype new SMB password:

  9. #9

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    And checked your firewall with (probably) iptables -L

  10. #10


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    I want to share files between 2 ubuntu 8.10 boxes and a mac
    If you don't need to extend this to windows, then you could use secure ftp.
    Code:
    sudo apt-get install openssh-server
    on ubuntu
    then use fetch or any sftp client on osx

  11. #11

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,822
    Thank Post
    1,476
    Thanked 593 Times in 445 Posts
    Rep Power
    168
    I'd just start off simply

    in yoursmb.conf set security = share

    comment out any other security/password stuff

    create a completly separate folder from root called /testshare

    and share it

    [public]
    comment = Public Folder
    path = /testshare
    public = yes
    writable = yes
    create mask = 0777
    directory mask = 0777


    and chmod it so that all users have complete access

    chmod -R 777 /testshare

    and plug a windows machine into the network and see if that can see the share.

    regards

    Simon

  12. #12

    Join Date
    Oct 2008
    Location
    Hedge End, Southampton
    Posts
    56
    Thank Post
    1
    Thanked 10 Times in 10 Posts
    Rep Power
    13
    Quote Originally Posted by somabc View Post
    I still cannot see any shares on any computer, either by IP or NETBIOS name, and yes they are all in the same workgroup.
    ..

    This is the smbclient output
    You say you can't see any shares, yet your smbclient output lists several, one the two boxen?

    What is the actual problem (where do you experience it)?

  13. #13
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    111
    Well the problem is that in Natilus if I go to Network I do not see any Computers listed, it is essentialy blank. If I use the command line tool it gives an error on connecting. So I can not connect to any shares from any computer. I think samba in Ubuntu 8.10 is borked due to gvfs?

    https://bugs.launchpad.net/ubuntu/+s...us/+bug/209520

    Is it possible to completely remove samba and smb.conf and then go back to the defaultI have ssh installed, can I use ftp over ssh (and how easy is this to setup?), or do you think it is safe it to use regular ftp bearing in mind this my home LAN with a router/firewall from the net?
    Last edited by somabc; 14th November 2008 at 01:05 PM.

  14. #14
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,011
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108
    Most decent FTP clients will do SFTP if you have SSH set up on the server. I have been using Filezilla while setting up while I have been setting up some servers this week.

  15. #15
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    51
    Quote Originally Posted by RabbieBurns View Post
    just thinking also, have you added samba users?

    Code:
    oasis ~ # smbpasswd -a new_user
    New SMB password:
    Retype new SMB password:
    I always used to forget this.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Samba Tip
    By Geoff in forum *nix
    Replies: 3
    Last Post: 28th November 2007, 02:23 PM
  2. Samba 4
    By FN-GM in forum *nix
    Replies: 8
    Last Post: 9th October 2007, 12:28 AM
  3. Samba
    By Jackd in forum Wireless Networks
    Replies: 2
    Last Post: 28th June 2007, 06:25 AM
  4. Samba (the joy of)
    By ZeroHour in forum *nix
    Replies: 1
    Last Post: 23rd January 2007, 12:21 AM
  5. Samba config
    By Dos_Box in forum *nix
    Replies: 7
    Last Post: 19th October 2005, 09:21 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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