Create Roaming User profile in Samba 4

Create Roaming User profile in Samba 4

A brief Introduction about Roaming Profile

Roaming profiles are user profiles which stores on server, that allows users with a computer joined to a Server (DC) to log on to any computer on the same network and access their profile data from server. This profile is slow than other profile while logon and logoff.  After log off user account all the data switch from client computer to server on user profile.

Configuring Samba for Roaming Profiles

Login on samba 4 server with root user and check few things:

Identify running process of samba

[[email protected] ~]#ps -ef | grep samba

Identify on which ports and interfaces Samba is listening

[[email protected] ~]#netstat -tunlp | grep samba

Create one or more user in Active directory

Doamin user name: gopal and prabhat

Create a directory called “userprofiles” inside “/” on samba 4 server

[[email protected] ~]# mkdir /userprofiles

Provide full permission to directory

[[email protected] ~]#chmod 777 /userprofiles

Make an entry of created directory in “smb.conf” file  for sharing purpose among users , where user profile will store on server.

[[email protected] ~]# vim /usr/local/samba/etc/smb.conf

[userprofiles]

path = /userprofiles

read only = no

valid users=  gopal

Now, Restart the samba daemon

[[email protected] ~]# /usr/local/samba/sbin/samba

Or,

[[email protected] ~]# samba

Or,

[[email protected] ~]# smbcontrol all reload-config

Test now

[[email protected] ~]# kinit [email protected]

Check the available  shared directory

[[email protected] ~]# smbclient -L localhost -U%

Domain=[KVIT] OS=[Windows 6.1] Server=[Samba 4.3.0pre1-GIT-d098b6c]

Sharename       Type      Comment

———       —-      ——-

netlogon          Disk

sysvol              Disk

userprofiles    Disk

IPC$                 IPC       IPC Service (Samba 4.3.0pre1-GIT-d098b6c)

Domain=[KVIT] OS=[Windows 6.1] Server=[Samba 4.3.0pre1-GIT-d098b6c]

Server               Comment

———            ——-

Workgroup       Master

Now go to your windows client machine where you have installed the remote administration tool(AD)for your domain server and define users to whom you want set roaming profile and set the path where user profile will created on server.

Go to run prompt and type dsa.msc  to open Active Directory console and set user profile path.

ad1

Now login in to client machine with domain user and check whether user profile is created or not on server and after user logout all user profile will be shift on server.

Login with above define roaming profile on client machine

2

Now, check the status on server

[[email protected] ~]# cd /userprofiles/

[[email protected] userprofiles]# ls

gopal.V2

After logout

[[email protected] userprofiles]# cd gopal.V2/

[[email protected] gopal.V2]# ls

output:

AppData  Contacts  Desktop  Documents  Downloads  Favorites  Links  Music  NTUSER.DAT  ntuser.ini  Pictures  Saved Games  Searches  Videos

Now, successfully roaming user profile is shifted on server

Download PDF

CEO, KV IT-Solutions Pvt. Ltd. | [email protected] | 9810028374|
Linux Professional and an Industrial Trainer | 20 + years Experience in IT Industry

” We are born free, No Gate and Windows can snatch our freedom “

SIMILAR ARTICLES

0 1522

0 1163

0 1056

NO COMMENTS

Leave a Reply