I have used swerdna’s documentation to get started with SAMBA. I am running the server on openSUSE 11.3 (switching to 12.1 here soon). On the server’s machine I can access the my home directory. On a Windows 7 machine, I can get to my home directory, change directories, and then create a file. On another Linux machine, also running 11.3, I cannot access my home directory and get the message “The file or folder smb://scott/homes does not exist.” Further I was not prompted for a userid/password.
Any ideas?
The smb.conf file is as follows:
Samba config file created using SWAT
from UNKNOWN (127.0.0.1)
Date: 2011/11/25 01:36:15
[global]
map to guest = Bad User
passdb backend = smbpasswd
printcap name = cups
logon path = \%L\profiles.msprofile
logon drive = P:
logon home = \%L%U.9xprofile
os level = 33
usershare allow guests = Yes
hosts allow = 192.168.1.1/255.255.255.0, 127.0.0.1
name resolve order = bcast host lmhosts wins
cups options = raw
Share disabled by YaST
[profiles]
comment = Network Profiles Service
path = %H
read only = No
create mask = 0600
directory mask = 0700
store dos attributes = Yes
[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
create mask = 0600
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775
[homes]
comment = Home Directories
valid users = %S, %D%w%S
read only = No
inherit acls = Yes
I made a change to the Global Area. I removed four lines and added in two. On the Samba PC you leave on the most or the one you turn on First and want it to be the browser master you will use:
local master = yes
preferred master = auto
While on the Other You will use:
local master = no
preferred master = auto
Your descriptions of what PC is doing what was confusing. When posting information like the smb.conf file, always use the Advanced Message Editor and enclose the info in a Code # block as I did above.
I made the changes you specified. Now from Windows 7, I receive the following message when I try and access the homes directory of Scott1 (the Linux 11.3 machine): Windows cannot access \scott1\homes - Check the spelling of the name.Otherwise there is a problem with your network.
So with three PC’s, one Windows 7 and two openSUSE I can look back and forth no problem. When I go from Samba to Windows 7, I must enter my local username and password. Here is my Global section I use:
[global]
workgroup = WINDOWSNT
netbios name = MASTERLINUX
server string = The Master of the Universe
security = SHARE
map to guest = Bad User
name resolve order = bcast host lmhosts wins
printcap name = cups
preferred master = Auto
local master = No
domain master = No
wins support = No
usershare allow guests = Yes
usershare max shares = 100
hosts allow = 192.168.0.0/255.255.255.0, 127.0.0.1
hosts deny = ALL
cups options = raw
write raw = yes
read raw = no
This just for reference of one setup that seems to work OK.
One of the machines is a Windows 7 . Linux 11.3 dual boot.
I implemented some of your changes. And let the OS level to default to 20. The hosts allow is set to: 192.168.1.*, 127.0.0.1 Workgroup = WORKGROUP and netbios name = Scott1
From the other linux machine I still get “the file or folder \scott1\homes does not exist.”
It has been a while since I used openSUSE 11.3, but I suggest you want to make sure your Samba versions are updated. I do recall having Samba problems back then and when Samba is configured properly, but does not work, it means there is a software bug present and this does happen.
I will go over the first as that was got be going with Samba. The second I will take a look at. I have downloaded the 12.1 version of OpenSuSE but have yet to burn it to DVD and install on the various machines.
So openSUSE 12.1 is real new and recently we have switched to systemd for parallel startup of system routines. Its fast but some things don’t work with it so far. What this means is you may want to look at an upgrade to openSUSE 11.4 for now as it is very solid with few issues and will be supported for a while longer (Until September 15th 2012). openSUSE 12.1 will continue to get better and better, but it may not be for everyone. Anyway, it is a suggestion I make to you to look at openSUSE 11.4 Portal:11.4 - openSUSE.
On 11/25/2011 10:06 AM, jdmcdaniel3 wrote:
>
> So with three PC’s, one Windows 7 and two openSUSE I can look back and
> forth no problem. When I go from Samba to Windows 7, I must enter my
> local username and password. Here is my Global section I use:
>
>
> Code:
> --------------------
> [global]
> workgroup = WINDOWSNT
> netbios name = MASTERLINUX
> server string = The Master of the Universe
> security = SHARE
> map to guest = Bad User
> name resolve order = bcast host lmhosts wins
> printcap name = cups
> preferred master = Auto
> local master = No
> domain master = No
> wins support = No
> usershare allow guests = Yes
> usershare max shares = 100
> hosts allow = 192.168.0.0/255.255.255.0, 127.0.0.1
> hosts deny = ALL
> cups options = raw
> write raw = yes
> read raw = no
> --------------------
>
>
> This just for reference of one setup that seems to work OK.
>
> Thank You,
>
>
For the record, “security = share” is no longer being maintained and is considered depreciated.
Unless you have some other reason to set the security parameter, let Samba use it’s default
“security = user”
–
P.V.
“We’re all in this together, I’m pulling for you” Red Green