Northcott, Steve
2010-Jul-21 16:08 UTC
[Samba] smbcontrol -d 3 smbd reload-config permission denied message.
Hi, I was attempting to make some changes to the file specified on the username map parameter. I then assumed that I needed to refresh the smbd options for this to take effect. I issued smbcontrol -d 3 smbd reload-config but the changes did not happen. In the trace output, I see the following messages:- csm1:/opt/pware64/lib #smbcontrol -d 3 smbd reload-config lp_load_ex: refreshing parameters Initialising global parameters params.c:pm_process() - Processing configuration file "/opt/pware64/lib/smb.conf" Processing section "[global]" Processing section "[CSM]" Processing section "[CSMINSTALL]" Processing section "[CSMSOFT]" Processing section "[visualcd]" Processing section "[CSM_ROOTDIR]" Processing section "[GUESTALE]" Processing section "[JASONS_SHARE]" Processing section "[IANS_TEST]" Processing section "[IANS_TEST2]" Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED fcntl_lock: fcntl lock gave errno 13 (Permission denied) fcntl_lock: lock failed at offset 0 count 1 op 12 type 1 (Permission denied) Are the two errors at the bottom a problem to this process? If so is anyone able to help me fix them? The SMBD process is started by ROOT and this was also the unix userid that I used to run the smbcontrol command so it has full unix authority. Smb.conf looks like this:- [global] workgroup = customer server string = csm1 SAMBA server interfaces = csm1 security = ADS realm = customer.edfenergy.net disable netbios = yes log file = /opt/pware64/var/sambalog log level = 1 max log size = 40960 name resolve order = host username map = /opt/pware64/lib/users.map create mask = 00 e.t.c...... Cheers, Steve Northcott Midrange Services Mainframe Services EDF Energy Plymouth Telephone : 01752 762804 Internal : 713 2804 Email : steve.northcott at edfenergy.com </pre><Font face="arial" size="2"><p>This e-mail and any files transmitted with it are confidential and may be protected by legal privilege. If you are not the intended recipient, please notify the sender and delete the e-mail from your system.</p><p>This e-mail has been scanned for malicious content but the internet is inherently insecure and EDF Energy plc cannot accept any liability for the integrity of this message or its attachments. No employee or agent of EDF Energy plc or any related company is authorised to conclude any binding agreement on behalf of EDF Energy plc or any related company by e-mail. </p><p>All e-mails sent and received by EDF Energy plc are monitored to ensure compliance with the company's information security policy. Executable and script files are not permitted through the EDF Energy plc mail gateway. EDF Energy does not accept or send mails above 30 Mb in size.</p>EDF Energy plc<br>Registered in England and Wales No. 2366852<br>Registered Office: 40 Grosvenor Place, London SW1X 7EN</font><pre>