LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2012, 11:25 PM   #1
dafluk
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
Install LDAP and SAMBA for user management


Hi, I am install OpenLDAP server on linux CENTOS 6.3. To manage linux user/password and Windows user/password.
I would like for user of windows to share disk space on Linux.
Is there any step by step instruction of the installation.
Is there a web interface to manage user/passw? So user can use that to change password themself.
Thanks!
 
Old 10-19-2012, 01:02 AM   #2
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 312

Rep: Reputation: 59
Welcome to LQ.
All you need is already on the web. If you'll have any problems let us know.

Link1
Link2
Link3
 
Old 10-19-2012, 04:02 AM   #3
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
Assalam o Alaikum!

I can only answer your this question

Quote:
Originally Posted by dafluk View Post
I would like for user of windows to share disk space on Linux.
Is there any step by step instruction of the installation.
LINUX to Windows Sharing

Use samba server

Steps:
yum install samba
mkdir /mnt/share
chmod 777 /mnt/share #share is folder you want to share

vim /etc/samba/smb.conf
WORKGOUP=WORKGROUP
interfaces= eth0 192.168.1.252/24 #this is my samba server IP and its interface
hosts allow = 127. 192.168.1. #all hosts that are in 127 and 192.168.1's network are allowed
security = user

[share] #share is folder name that you want to share or put any
comments = all users
path = /mnt/share
browseable = yes
writeable = yes
guest ok = yes
share mode = yes
valid users = sambauser root ukengr # these useres must exist in your system

Save & exit

now run following commands
smbpasswd -a smbuser
smbpasswd -a root

service iptables stop


GO TO WINDOWS CLIENT:
Turnoff firewall
Start----> Run-----> //192.168.1.252 OR \\192.168.1.252 ####this your samba server IP,

username: sambauser
password: *******

END

WINDOWS to LINUX Sharing
-Allow sharing (in windows xp you can allow in this way My computer---> tools-----> folder options----> view (tab)-----> use simple file sharing (enable it))
-Right click on folder (name: share_windows)----> click on sharing and security----> share the folder
-come to linux server----> write following command:
mount -t cifs \\192.168.1.252\share_windows /mnt/share


Please see spelling mistakes in config file which i have written above.

Last edited by uk.engr; 10-19-2012 at 04:03 AM.
 
Old 10-19-2012, 10:17 AM   #4
dafluk
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
The shared space should limit to /home/<userdi>

Nikosis and uk.engr,
Thanks for your help!
The goal of install LDAP and SAMBA is that each user own the same userId on Linux and Windows.
When user from windows share the diskspace on Linux, the user only can access user's home directory which is "/home/<user id>".
When a new user join the system, the only step is to create an account in LDAP, SAMBA should include the user automatically.
Anyone who have done this before?
Thanks in advance for your help!
 
Old 10-19-2012, 10:28 AM   #5
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
Sorry dear I didn't work on ldap. Please let me know some tutorial or steps for doing LDAP on fedora

Thanks!
 
Old 10-19-2012, 11:25 PM   #6
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 312

Rep: Reputation: 59
This might be what you need

LINK
 
Old 10-21-2012, 06:51 AM   #7
dafluk
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks! Nicosis

This artical is out of date. Current commands are working differently. It is very hard to follow this tutorial.
Any update to date instructions?
Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ldap password sync with samba and unix user account macpraveen Linux - Server 4 04-22-2010 10:55 AM
Slackware - LDAP + SAMBA - domain user authentication issue dilandach Slackware 1 04-07-2009 01:40 AM
samba root user with Open LDAP paul_mat Linux - Networking 6 01-16-2007 09:08 PM
LXer: AIX 5L LDAP user management: Active Directory client support LXer Syndicated Linux News 0 12-27-2006 11:54 PM
Samba PDC , LDAP user authentication , what about Machines ? Jingle Linux - Enterprise 0 07-22-2005 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration