nlc_IT_Dept
asked on
Samba issues with SuSE Linux Enterprise Server 10 SP2
Hello all,
Im very new to linux and need to set up a shared folder on a SLES 10 box that will be accessible (write access) from certain other servers.
Samba came pre-installed so I've not needed to run through the setup. So far I have only edited the smb.conf file to include the new folder that I want to share. Everything else is default.
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/sa mba/exampl es/smb.con f.SUSE if the
# samba-doc package is installed.
# Date: 2008-11-21
[global]
workgroup = WORKGROUP
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 = Yes
[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
#-----------------Below this line are my changes to the smb.conf file.--------------------- --
[DR_File]
path = /DR_File
comment = Netbackup DR Catalog files
browsable = yes
guest ok = yes
Once the file had been saved I tested access by trying to explore to \\linux-box\sharename with no luck.
Turned off the firewall on the linux box and still no change.
Im very new to linux and need to set up a shared folder on a SLES 10 box that will be accessible (write access) from certain other servers.
Samba came pre-installed so I've not needed to run through the setup. So far I have only edited the smb.conf file to include the new folder that I want to share. Everything else is default.
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/sa
# samba-doc package is installed.
# Date: 2008-11-21
[global]
workgroup = WORKGROUP
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 = Yes
[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
#-----------------Below this line are my changes to the smb.conf file.---------------------
[DR_File]
path = /DR_File
comment = Netbackup DR Catalog files
browsable = yes
guest ok = yes
Once the file had been saved I tested access by trying to explore to \\linux-box\sharename with no luck.
Turned off the firewall on the linux box and still no change.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Do you know how to start/stop the service. The conf file after changing has to be reloaded.
Let's start by also making sure that the users are present on the linux system and in samba.
replace <username> with the name of the user that is attempting to access the share.
replace <password> with the password that <username> uses to logon
Enter the 4 following commands:
useradd <username>
passwd <username> #enter the <password> at the prompts
smbpasswd -a <username>
smbpasswd -e <username>
restart the samba service ... this can be done from YaST
System > Network Services > (somewhere in here I believe)
Can you sudo at all on your system?
*** If the windows user does not use a password then do the following
useradd <username>
smbpasswd -an <username>
Let's start by also making sure that the users are present on the linux system and in samba.
replace <username> with the name of the user that is attempting to access the share.
replace <password> with the password that <username> uses to logon
Enter the 4 following commands:
useradd <username>
passwd <username> #enter the <password> at the prompts
smbpasswd -a <username>
smbpasswd -e <username>
restart the samba service ... this can be done from YaST
System > Network Services > (somewhere in here I believe)
Can you sudo at all on your system?
*** If the windows user does not use a password then do the following
useradd <username>
smbpasswd -an <username>
ASKER
No idea how to start/stop the service. And now im not entirely sure that Samba is installed!
I created the user as instsructed, however, the commands:
- "smbpasswd -a <username>" and
- "smbpasswd -e <username>"
Both returned a "command not found" error again.
Regardless, I went into YaST > Network Services > Samba Server. It prompted me that Samba needed to be installed. I hit Continue and the install started. Then I got an error message saying:
"installing required packages failed. If you continue without installing required packages, YaST may not work properly."
I canceled and exited YaST.
I created the user as instsructed, however, the commands:
- "smbpasswd -a <username>" and
- "smbpasswd -e <username>"
Both returned a "command not found" error again.
Regardless, I went into YaST > Network Services > Samba Server. It prompted me that Samba needed to be installed. I hit Continue and the install started. Then I got an error message saying:
"installing required packages failed. If you continue without installing required packages, YaST may not work properly."
I canceled and exited YaST.
If YaST says there is no samba... then there is no samba.
Try:
yast2 -i samba
if that didn't work try the following:
yast2 -i samba-server
Try:
yast2 -i samba
if that didn't work try the following:
yast2 -i samba-server
ASKER
I think we're on the right track. thanks for you help!
Where does YaST look for installation packages?
It's saying it cant dinf any so I'll have to download it.
Where does YaST look for installation packages?
It's saying it cant dinf any so I'll have to download it.
Not sure where it looks for packages. How is it working after the install?
Yast2 look for packages in the repository defined in "Installation Sources" which you can find in Yast2 Software module
ASKER
- "chmod -R 777 /DR_File" command did not return any visible result (ie. just went back to the # prompt). I assumed this change the permissions on the folder somehow so I then tried accessing the shared folder again from my windows machine... no luck
- "rcsmb restart" returned "- bash: rcsmb: command not found"
- "sudo rcsmb restart" returned "sudo: rcsmb: command not found"
- "rcnmb restart" returned "- bash: rcnmb: command not found"
- "sudo rcnmb restart" returned "sudo: rcnmb: command not found"
- "sudo /etc/init.d/smb reload" returned "sudo: /etc/init.d/smb: command not found"