Jump to content

Recommended Posts

Posted (edited)

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 :confused:

 

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

Edited by somabc
Posted

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

 

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?

Posted
 #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 

Posted (edited)

This is mine just now,

 

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

Edited by somabc
Posted (edited)

DOH looks like I forgot to uncomment ;[Homes] duh! Still not working though.

 

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

Edited by somabc
Posted

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?

Posted
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.

sudo apt-get install openssh-server

on ubuntu

then use fetch or any sftp client on osx

Posted

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

Posted
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)?

Posted (edited)

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/+source/nautilus/+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?

Edited by somabc
Posted
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.
Posted
just thinking also, have you added samba users?

 

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

 

I always used to forget this.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...