- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Samba configuration question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 02:37 AM
тАО07-25-2003 02:37 AM
Recently I had a server failure and I had no choice but to do a complete fresh installation without restoring from tape, as such I ended up installing a new version of Samba which I obtained from the HP SW center.
samba 2.2.3a
Afterwards I tried restoring my old configuration file literally just allowed one filesystem to be available with a unix account logon and password but it no longer works.
I managed to set up a public share with guest access with no problems but this is of no use as the information that needs to be exported is payroll data but at least this proves that the software is installed correctly.
Can anyone please post an example of how the configuration file should look to enable one filesystem to be exported with only standard unix logon and password for authentication.
Kind regards,
Robert Thorneycroft
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 03:09 AM
тАО07-25-2003 03:09 AM
Re: Samba configuration question
For global parameters applies to al shares you define in smb.conf file.
Post the error message you are getting.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 03:11 AM
тАО07-25-2003 03:11 AM
Re: Samba configuration question
Orion is the name of our server and we have multiple vols exported;
# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 2003/07/15 16:51:03
# Global parameters
[global]
netbios name = ORION
server string = Samba Server
security = SERVER
encrypt passwords = Yes
password server = orion
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 1000
local master = No
read only = No
short preserve case = No
dos filetime resolution = Yes
[homes]
comment = Home Directories
browseable = No
[tmp]
path = /tmp
[root_home]
path = /root_home
[swdepot]
path = /swdepot
[tony_pc]
path = /tony_pc
[tmp_mnt]
path = /tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 03:15 AM
тАО07-25-2003 03:15 AM
Re: Samba configuration question
[global]
server string = SAMBA
allow hosts = ALL
workgroup = WORKGROUP
guest only = yes
dead time = 5
security = share
guest account = lp
auto services = lp
postscript = no
print command = /usr/bin/lp -d %p %s ; /usr/bin/sleep 10 ; /usr/bin/rm %
s
printcap name = lpstat
load printers = yes
socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=8192 SO_RCVBUF=8192
preserve case = yes
short preserve case = yes
unix password sync = yes
browsable = yes
share modes = yes
browsable = yes
share modes = yes
os level = 64
wins support = Yes
Example for Specific Part:
[test]
path = /test
public = yes
writeable = yes
Example for Printer Part:
[printers]
comment = Networkprinter
printable = yes
path = /tnq/Printerqueue
printing = hpux
public = yes
guest ok = yes
browsable = yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 03:30 AM
тАО07-25-2003 03:30 AM
Re: Samba configuration question
In the old samba version, by default the parameter security is set to shared, in the new samba versions this is not by default.
Perhaps adding in the [global] section this directive you can put all in order:
security = share
HTH
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 03:32 AM
тАО07-25-2003 03:32 AM
Re: Samba configuration question
Can you post your old smb.conf - we might be able to make a minor correction to that rather than posting lots of different customised files!
regards,
Darren.
PS: Stefan - Just a quick fyi from the smb.conf man page: "Never point a Samba server at itself for password serving. This will cause a loop and could lock up your Samba server!"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 03:59 AM
тАО07-25-2003 03:59 AM
Re: Samba configuration question
# Samba config file created using SWAT
# from opcpc01.brake.co.uk (150.150.101.201)
# Date: 2003/06/11 13:18:37
# Global parameters
[global]
workgroup = UK_BRAKES
server string = tst01: Samba Server
password server = *
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 1000
local master = No
wins server = 150.150.119.101
read only = No
short preserve case = No
dos filetime resolution = Yes
[homes]
comment = Home Directories
browseable = No
[edi]
comment = EDI data share
path = /edi
[dataload]
comment = dataload share
path = /usr/sap/trans/DATALOAD
below is also a copy of the file I am currently using, this one is primarily based on the Orion example above. When I try to connect to the server using this script I get the user id and password box displayed however when I enter a unix user id and password the NT box respondes with incorrect password or incorrect username for: \\tst01\edi
# Samba config file created using SWAT
# from opcpc01.brake.co.uk (150.150.101.201)
# Date: 2003/07/25 12:23:36
# Global parameters
[global]
workgroup = UK_BRAKES
netbios name = TST01
security = SERVER
encrypt passwords = Yes
password server = tst01
log file = /var/opt/samba/log.%m
max log size = 1000
log level = 3
preferred master = False
local master = No
read only = No
short preserve case = No
dos filetime resolution = Yes
[dataload]
comment = tst01 DATALOAD directory
path = /usr/sap/trans/DATALOAD
[edi]
comment = tst01 edi directory
path = /edi
[edi2]
comment = tst01 edi2 directory
path = /edi2
I am afraid I am about to finish work for the day so I will not be able to answer any further questions or give ratings till Monday morning. Have a good weekend everyone and thanks for your help so far.
Regards,
Robert Thorneycroft
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 04:09 AM
тАО07-25-2003 04:09 AM
SolutionI think Francisco has got the answer - you haven't defined a security level in your previous smb.conf, so the default for the new version is being used, which is different to the older version you had. The default for newer versions is user; which requires a smbpasswd file to be created (hence the error message you're seeing.)
Share security isn't a particularly nice method of authentication; it's documented in Chapter 6 in the O'Reilly Using Samba book (which you can access via SWAT.) I believe adding a security = share line in your [global] section of your original smb.conf will fix your problem, though I'd suggest you look at the other security methods for the future.
regards,
Darren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2003 04:13 AM
тАО07-25-2003 04:13 AM
Re: Samba configuration question
What is the errror you get in log file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2003 01:54 AM
тАО07-29-2003 01:54 AM
Re: Samba configuration question
Thanks for all the help.
Kind regards,
Robert Thorneycroft