Tuesday, April 9, 2013

Creating Multiple Home Directories with Custom Permissions

In this post we will see a way to create multiple home directories, remove inherited permissions, remove other users, and then give the user write access to the folder.

Create Share for Home Directories

On your file server, create a share that will hold all your home directories. Be sure to allow Domain Users to have read access to this share

Get a list of all users

We wanted the home directories to have the same name as the user's login name. I was able to export a list from Active Directory of all the login names. Save this as a text file with the name file.txt

Batch file to create directories

Make a batch file with the following lines to create the home directories:
@echo off
for /f %%i in (file.txt) do mkdir %%i
Place this batch file in the root of the share along with the file.txt. Run the batch to create the folders.

Removing Inheritance

We don't want user's to be able to see the contents of other user's home directories. First we need to break inheritance. I found a program called SetACL and it can be found at http://files.helgeklein.com/downloads/SetACL/current/SetACL%20(executable%20version).zip

Modify the batch file you created and remove "mkdir %%i" and place the following in its place:

setacl -on %%i -ot file -actn setprot -op “dacl:p_c”

Friday, April 5, 2013

Linux File and Directory Permissions

file & directory protection is a essential of any OS and Linux OS is no exception for it!

These authorizations allow you to choose exactly who can access your files & directory, providing an overall improved system security. There was one of the major flaws in the older Windows operating-system where, by standard, all users can see each other people's information (Windows 95, 98, Me).

For overcoming it, editions of the Windows based computer system such as NT, 2000, XP and 2003 lot more security features added. They fully support file & directory permissions, just as Linux system has since the beginning.

Together, we'll now assess a directory listing from our Lab Linux system hosting server, to help us understand the information provided.
a simple 'ls' command will give you the file and directory listing within a given directory, including the option 
'-l' will display number of new areas that we are going to discuss here:

Monday, April 1, 2013

Windows Server 2003 Best practices

This post contains pointers to Windows Server 2003 support recommendations and tips.

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Best practices

Search & Buy Amazon Products at discounted rate!!


Subscribe to AtoZ-networking Newsletter

Do you want to receive Linux FAQs, Microsoft FAQ, Solaris FAQ, detailed Networking tutorials and tips published at atoz-networking? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.

Sign-up for the newsletter