Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY

Go Back   Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY > CentOS Việt Nam - Viet Nam Linux CentOS Community > Chia sẻ dữ liệu > Linux share (samba)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2008
Hackingart Member
 
Join Date: Sep 2008
Posts: 22
Thanks: 0
Thanked 1 Time in 1 Post
Default HOWTO - Samba, CentOS 5 and Ravencore

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.


Quote:
net groupmap list
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.

Quote:
vi /etc/samba/smb.conf
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.

Quote:
service smb reload
If all goes well:

Quote:
Reloading smb.conf file: [ OK ]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:13 PM.


© Diễn đàn HackingArt (HA) được xây dựng và phát triển bởi các thành viên.
+ Diễn đàn HackingArt là nơi trao đổi của các webmaster chuyên nghiệp.