Can't find Samba server

Asked by Gunnar Tryggvason on 2011-01-30

I just upgraded mythbuntu 9.04 to 9.10 and then to 10.04. I run update with synaptic manager. After I've done that I noticed than 2 of the hard disks where switched, i.e. /dev/sda became /dev/sdb? I changed that in fstab file and that was that. But know I can find my Samba server? When I try to stop/start/restart my samba like "/etc/init.d/samba restart" I get "command not found" Ups!!! The Samba server is installed, at least it is shown to be in my synaptic manager. What to do?, I need my Samba to work.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Last query:
2011-01-30
Last reply:
2011-01-30

Try:

service smbd start

Or better:

sudo service smbd restart

Thanks. Samba is broadcasting the shares. I can only browse threw the mythtv-shares. I lack permission to browse to the shares I added to fstab. There is something I don't understand. I can't stop my samba as I used to do, I will start by chanching my fstab and see what happens.

To stop samba please type:

sudo service samba stop

We need some info to help you better...

fstab content, then please simply retry to delete and recreate shares

Why can't I see the Samba server when I run "top" in my terminal window?

Pease look for smbd process

Hi I remarked [maria] out and restarted Samba with "sudo service smbd restart" and that worked, I couldn't see [maria]. I mount the shares in the fstab on each computer, se below. When I use "sudo mount -a" on the clients, I get "mount error(13): Permission denied". This is probably accses-permission issue, smb is rather picky on owners of mounting points?

COntent of fstab:
//192.168.1.100/tonlist media/tonlist cifs credentials=/etc/samba/user,iocharset=utf8,noexec 0 0
//192.168.1.100/gogn media/gogn cifs credentials=/etc/samba/user,iocharset=utf8,noexec 0 0
//192.168.1.100/HARPA /home/harpa/harpa-diskur cifs credentials=/etc/samba/userh,iocharset=utf8,gid=1001,uid=1001,file_mode=0777,dir_mode=0777,noexec 0 0
//192.168.1.100/maria /home/maria/maria-diskur cifs credentials=/etc/samba/userm,iocharset=utf8,gid=1003,uid=1003,file_mode=0777,dir_mode=0777,noexec 0 0
//192.168.1.100/tryggvi /home/tryggvi/tryggvi-diskur cifs credentials=/etc/samba/usert,iocharset=utf8,gid=1002,uid=1002,file_mode=0777,dir_mode=0777,noexec 0 0
//192.168.1.100/myndir /media/myndir cifs credentials=/etc/samba/user,gid=users,iocharset=utf8,noexec 0 0
//192.168.1.100/Sameign /media/Sameign cifs credentials=/etc/samba/user,gid=users,iocharset=utf8,noexec 0 0
//192.168.1.100/recordings media/recordings cifs credentials=/etc/samba/user,gid=users,iocharset=utf8,noexec 0 0
//192.168.1.100/videos media/videos cifs credentials=/etc/samba/user,gid=users,iocharset=utf8,noexec 0 0

smb.conf on the mythbuntu server (192.168.1.100)
[global]
workgroup = MSHOME
server string = %h server (Samba, Mythbuntu)
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
dns proxy = no
security = user

[recordings]
comment = TV Recordings
path = /var/lib/mythtv/recordings
public = yes
writable = no
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup

[videos]
comment = Videos
path = /media/video
public = yes
writable = yes
create mask = 0660
directory mask = 0770
;force user = mythtv
;force group = mythtv

[music]
comment = Music
path = /var/lib/mythtv/music
public = yes
writable = yes
create mask = 0660
directory mask = 0770
force user = mythtv
force group = mythtv

[pictures]
comment = Pictures
path = /var/lib/mythtv/pictures
public = yes
writable = yes
create mask = 0660
directory mask = 0770
force user = mythtv
force group = mythtv

[gogn]
comment = gogn
path = /media/gagnadiskur/gogn
public =yes
writable = yes
create mask = 0660
directory mask = 0770
force user = gunnar
force group = gunnar

[HARPA]
comment = harpa
path = /media/gagnadiskur/HARPA
public = yes
writable = yes
create mask = 0660
directory mask = 0770
force user = harpa
force group = harpa

[maria]
comment = maria
path = /media/gagnadiskur/Maria_Borg
public = yes
writable = yes
create mask = 0660
directory mask = 0770
force user = maria
force group = maria

[tryggvi]
comment = tryggvi
path = /media/gagnadiskur/TRYGGVI
public = yes
writable = yes
create mask = 0660
directory mask = 0770
force user = tryggvi
force group = tryggvi

[myndir]
comment = myndir
path = /media/gagnadiskur/Myndir
public = yes
writable = yes
create mask = 0776
directory mask = 0776
;force user =gunnar
;force group = users

[tonlist]
comment = Tónlist-Strandgata
path = /media/gagnadiskur/tonlist
public = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup

[Sameign]
comment = Sameign
path = /media/gagnadiskur/Sameign
public = yes
writable = yes
create mask = 0776
directory mask = 0776

Can you help with this problem?

Provide an answer of your own, or ask Gunnar Tryggvason for more information if necessary.

To post a message you must log in.