LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Install LDAP and SAMBA for user management (https://www.linuxquestions.org/questions/linux-newbie-8/install-ldap-and-samba-for-user-management-4175432993/)

dafluk 10-18-2012 10:25 PM

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!

Nikosis 10-19-2012 12:02 AM

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

Link1
Link2
Link3

uk.engr 10-19-2012 03:02 AM

Assalam o Alaikum!

I can only answer your this question

Quote:

Originally Posted by dafluk (Post 4809609)
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.

dafluk 10-19-2012 09:17 AM

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!

uk.engr 10-19-2012 09:28 AM

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

Thanks!

Nikosis 10-19-2012 10:25 PM

This might be what you need

LINK

dafluk 10-21-2012 05:51 AM

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!


All times are GMT -5. The time now is 08:48 PM.