This is a little sidenote I kept while setting up samba on my staging server at work. Thought I'd pass it on. Here is what I did to enable samba share and ravencore on CentOS 5. You should already have a working smb.conf file, and understand adding a user to samba. If not read the CentOS 5 chapter on samba at this link:
Chapter 19. Samba
In this walkthrough, replace userexample with the linux user (should be configured in samba already) you wish to be able to access the share. Do this HOW TO after installing ravencore.
1. !!!!!DISABLE SELINUX AND REBOOT!!!!! I didn't take the time to get SELinux working together with samba and ravencore. This is a staging server I use at work for pre production quality sites. make sure your su root before doing these commands:
2.
Quote:
|
net groupmap add ntgroup="Domain Users" unixgroup=servgrp rid=1001 type=d
|
3.
You should get something like this:
Quote:
|
Domain Users (S-1-5-21-65472990-3280274340-3516306269-1001) -> servgrp
|
4.
Quote:
groups userexample
userexample: userexample
|
5.
Quote:
|
usermod -G userexample,servgrp userexample
|
6.
Quote:
groups userexample
userexample : userexample servgrp
|
7.
add this for the ravencore share:
Quote:
[vhosts]
comment = apache hosted websites
path = /home/httpd/vhosts
valid users = @servgrp
force user = rcadmin
force group = servgrp
read only = no
create mask = 0777
directory mask = 0777
public = no
|
8.
If all goes well:
Quote:
|
Reloading smb.conf file: [ OK ]
|