I have setup samba server, set NMBD, SMBD & NTPD from system services and set apparmor to complain but I am still unable to read any network drives. I have checked the firewall and seen that samba is set to enable for internal allowed services. Also should I be changing the NMBD, SMBD & NTPD to complain from App armor?
Any suggestions please.
Many thanks in advance for your help.
There is a bug with openSUSE 11.4 and nmb for which you can see the fix here:
Samba set up : nmb is not starting
Are you saying you have already addressed the nmb problem? For most issues with Samba I suggest a visit to here:
Samba: Practical Introduction to Linux Usershares on openSUSE 10 11
You might want to post your /etc/samba/smb.conf file for us to see. You might want to post your /etc/fstab file if you are trying to share a partition other than /home? Please let us know if you do not know how to do this.
Thank You,
You should set usr.sbin.smbd and usr.sbin.nmbd to complain in AppArmor
And in Yast – Firewall → allowed services you should have (1) netbios server (2) samba server and (3) samba client set as allowed.
When you run this command:
su -c "rcnmb status;rcsmb status"
you should see two answers both saying “running”.
How does all of that check out?
Hi,
I havnt fixed the nmb problem, sorry. Please see smb.conf below
smb.conf is the main Samba configuration file. You find a full commented
version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
samba-doc package is installed.
Date: 2011-03-01
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
usershare allow guests = No
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = Auto
local master = Yes
os level = 65
preferred master = Yes
security = domain
idmap gid = 10000-20000
idmap uid = 10000-20000
wins support = No
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root
Fstab below
/dev/disk/by-id/ata-TOSHIBA_MK5056GSY_60OBT3NYT-part1 swap swap defaults 0 0
/dev/disk/by-id/ata-TOSHIBA_MK5056GSY_60OBT3NYT-part2 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-TOSHIBA_MK5056GSY_60OBT3NYT-part3 /home ext4 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
Also it says it cant find the Workgroups on the samba settings. I am not very experienced with Linux just learning sorry for lack of detail and many thanks for your help,
THE STATUS READS
Checking for Samba NMB daemon running
Checking for Samba SMB daemon running
the following (1) netbios server (2) samba server and (3) samba client are all set as allowed,
Many thanks for your help
You have set this computer up as a Domain Member. Do you have a server there for it to talk to? Or is that a mistake and it is in a home or small office workgroup?
PS, you said you are “unable to read any network drives”. That can mean a bunch of things, all different. Please tell us in full what you mean by that, maybe you mean you can’t see any other computers in the openSUSE network browser?
On Wed June 15 2011 05:06 am, swerdna wrote:
>
> You have set this computer up as a Domain Member. Do you have a server
> there for it to talk to? Or is that a mistake and it is in a home or
> small office workgroup?
>
darren787;
More specifically, " security = domain" should only be used for member servers
of an NT or Samba domain ( Some other machine is the PDC ). For non domain
members leave security set to the default i.e. user. For non domain members
use:
security = user
See the write up in on the parameter security in “man smb.conf”
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
Hi,
I havnt set up as a server on purpose, I don’t know how to do that. The computer is setup in a home network situation. I am also unsure about the security = user setting and where to find this, I have checked app armor, firewall etc but cant see it. The drive is a usb connected expansion drive that is accesible from the router. When I was using Fedora (Sorry) I used Samba to access it but it is not accessable from either Samba or the USB directly connected.
The expansion drive: how is it mounted in the openSUSE computer. You see the files on the openSUSE computer, the folder that they appear in is the “mount point”. What’s the path to the mount point?
I think that you want to share the mount point (folder where you see the USB drive’s files) out to the network. Is that right?
It shows up in the list of accessable drives on Dolphin but when I click it it says the drive is inaccessable as the file system is unknown. It works fine on 2 other machines here, a windows and Fedora machine. I dont know the path as It doesnt let me access anything about it (That I can see anyway)
If it’s an NTFS hard drive and if you’re using openSUSE 11.4: there’s a bug in openSUSE 11.4 that stops NTFS from being recognised.
Yo have to open the text file “filesystems” located at /etc/filesystems and edit it so it looks like this:
vfat
hfs
minix
reiserfs
ntfs
*
You’ll find the ntfs entry is missing – type it in so it looks like the example I gave.
You can open it to type with this command:
- gnome use this one: gnomesu gedit /etc/filesystems
- kde use this one: kdesu kwrite /etc/filesystems
Did that help the recognition problem?
You are the master!!! It works directly in my Laptop USB,Thank you very very much but it still doesnt work via the usb in my cisco router. Any suggestions with this?
Also the Cisco router creates a workgroup name called “Workgroup” and when trying to modify samba via yast and click to save settings it says “Unable to find a suitable server for workgroup”. I guess this comes down to the security settings you referred to earlier but I don’t know how to modify this, can you please help or suggest something else that you think may be the cause.
Many thanks for your expert help.
On Mon June 20 2011 08:06 am, darren787 wrote:
>
> Also the Cisco router creates a workgroup name called “Workgroup” and
> when trying to modify samba via yast and click to save settings it says
> “Unable to find a suitable server for workgroup”. I guess this comes
> down to the security settings you referred to earlier but I don’t know
> how to modify this, can you please help or suggest something else that
> you think may be the cause.
> Many thanks for your expert help.
>
>
darren787;
Just edit /etc/samba/smb.conf and remove the entire security parameter. It
will default to “security = user”.
i.e. delete the line that says “security = domain”.
kdesu kwrite /etc/samba/smb.conf
or
gnomesu gedit /etc/samba/smb.conf
–
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
Thanks for that, I don’t think I explained it very well, sorry. I meant that the expansion drive is not accessable via the network Samba shares option whilst it is plugged into the USB of my router, can you also help me with this?
Thanks
Oh I see, thanks.
Use the editor technique given bu P.V. above to open smb.comf and change the top “stanza”, change this:
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
usershare allow guests = No
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = Auto
local master = Yes
os level = 65
preferred master = Yes
security = domain
idmap gid = 10000-20000
idmap uid = 10000-20000
wins support = No
To this:
[global]
workgroup = WORKGROUP
netbios name = xxxxxxxx
server string =
map to guest = Bad User
name resolve order = bcast host lmhosts wins
printcap name = cups
os level = 64
preferred master = Auto
local master = No
usershare allow guests = Yes
cups options = raw
use client driver = Yes
(change xxxxxxxx to a name that you would like your openSUSE computer to be seen by on the network)
Then run this command in a console after using “su” to become root:
rcnmb restart; rcsmb restart
Then reboot and reboot the router after that (makes them all chat with each other).
I did as you described above but it still says “unable to find any workgroups in your local network. This might be caused by an enabled network”
OK run these two commands and report the results back here:
- cat /etc/sysconfig/SuSEfirewall2 | grep FW_CONFIGURATIONS_EXT=
- su -c “rcSuSEfirewall2 status”
(They won’t work if you make a typo so if you get a silly response, check the typing)