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 DESKTOPsmbclient --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; 14th November 2008 at 12:22 AM.

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
Want me to send you the smb.conf to look at?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
I seem to be missing the SERVER section?

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
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 01:43 AM.
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 01:46 AM.

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?

just thinking also, have you added samba users?
Code:oasis ~ # smbpasswd -a new_user New SMB password: Retype new SMB password:

And checked your firewall with (probably) iptables -L

If you don't need to extend this to windows, then you could use secure ftp.I want to share files between 2 ubuntu 8.10 boxes and a mac
on ubuntuCode:sudo apt-get install openssh-server
then use fetch or any sftp client on osx

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
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 02:05 PM.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)