Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba Permission

Status
Not open for further replies.

mclaren

IS-IT--Management
Sep 17, 2001
14
0
0
IT
Dear all,
How come I cannot change the permision of samba by using NT workstation.It prompted me access is denied.I can i resolve this problem.My smb.conf permission is 644.Thanks.
 
Hi,







Do you mean you want to edit smb.conf from NT ? If so what user is the 'smbd' process running under (it needs write access - would have to be root in this case) and are you connecting to the samba share as root ? If you really want to do that kind of thing I think you'd need a share definition something like this :







[smbconf]



path = /etc/samba (or whatever )



writable = yes



printable = no



force user=root



write list=root



read list=root







Its really much easier to use SWAT via a web browser and admin samba that way. (example screenshot -->


You might need to edit the /etc/xinetd.d/swat file to allow non-local access :







# default: off



# description: SWAT is the Samba Web Admin Tool. Use swat



# to configure your Samba server. To use SWAT,



# connect to port 901 with your favorite web browser.



service swat



{



port = 901



socket_type = stream



wait = no



only_from = 172.16.0.0



user = root



server = /usr/sbin/swat



log_on_failure += USERID



disable = no



}







The above example would allow swat to be used by root from any lan address on the 172.16.0.0/16 subnet.




Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top