Delegate permission for Objects and Users

  sd_mp_group_obj_administration (TEST\sd_mp_group_obj_administration)

They have the following permissions:
Read Members
Write Members

For the following object types:  Group

test.net/TESTComputers/MP

The groups, users, or computers to which you have given control are:

sd_mp_user_obj_administration (TEST\sd_mp_user_obj_administration)

They have the following permissions:
Read All Properties
Write All Properties
Read and write account restrictions
Validated write to DNS host name
Validated write to service principal name

list contents, read permissions, all validated writes

For the following object types: Computer

http://morgansimonsen.wordpress.com/2013/12/17/delegating-computer-object-management-tasks/

http://technet.microsoft.com/en-in/library/cc756898%28v=ws.10%29.aspx
http://www.windowsecurity.com/articles-tutorials/windows_os_security/verifying-active-directory-delegation-accurate.html
http://msdn.microsoft.com/en-us/library/ms676913%28v=vs.85%29.aspx

Advertisements

SVN Commands

SVN checkout or up using user defined credentials

svn co https://svn.abc.net/svn/repos/WebSites/abc/branches/live/www.securitycouncil.com –username <username> –no-auth-cache

 

SVN update only files (not subdirectories)

svn update –depth=files

View SVN log comment for last two commit

svn log https://svn.abc.net/svn/repos/WebSites/Com/branches/staging/tiger.como.net – -limit 2 -v

SVN revert to previous version 

svn up -r prev <filename>

Renaming (moving) a repo in SVN

svn mv https://svn.como.net/svn/repos/WebSites/Com/trunk/Cominfo.com https://svn.como.net/svn/repos/WebSites/Com/trunk/www.cominfo.com

Remove a repo in SVN

svn rm https://svn.como.net/blogs.mod.com -m “unneeded branches”

Copy a repo in SVN

svn cp -m “VZ-649-71504 staging branch” <source full url> <destination full url>

SVN revert all changes

svn st -q | awk '{print $2;}' | xargs svn revert

SVN Conflict –  http://www.logicaltrinkets.com/wordpress/?p=178

View the SVN update status without updating

svn status -u

Revert SVN Delete changes before commiting

svn revert --depth infinity deletedDir

SVN Merge Changes

http://pointbeing.net/weblog/2009/04/command-line-subversion-tutorial-part-2.html

SVN Switch working copy

$ svn info | grep URL
URL: http://svn.example.com/repos/calc/trunk

$ svn switch http://svn.example.com/repos/calc/branches/my-calc-branch
U   integer.c
U   button.c
U   Makefile
Updated to revision 341.

$ svn info | grep URL
URL: http://svn.example.com/repos/calc/branches/my-calc-branchM

 

Creating a ezmlm list

Create a closed mail list so only the members in the list and send and receive mail

ezmlm-make -giurs -5 infra@lists.support.net ~/list/operations ~/.qmail-operations operations sitename.com

echo ‘[Operations]’ > list/operations/prefix

$for e in mail1@test.com mail2@demo.com; do for l in operations; do ezmlm-sub ~/list/${l} ${e}; done; done

Linux Simple Commands

Linux – ls taking long time to display many files in directory

#  time ls -1 -f | head

http://unixetc.co.uk/2012/05/20/large-directory-causes-ls-to-hang/

Tips

mkdir /tmp/data && cd /tmp/data – if first command successfully execured then next command is exdcuted

[ -d /tmp/data1 ] || mkdir /tmp/data1 – if first command fails the second command executed

cat /etc/shadow > /dev/null && echo “File opened successfully” || echo “Failed to open File”

Rsync

https://calomel.org/rsync_tips.html

https://everythinglinux.org/rsync/

http://www.jveweb.net/en/archives/2010/11/synchronizing-folders-with-rsync.html

Adding an IP address from command line (linux)

ip a a <service-ip>/32 dev eth0

ip address add 192.168.99.37/24 dev eth0

ip a a 192.168.1.17/24 brd + dev eth0 label eth0:7

inet 192.168.1.17/24 brd 192.168.1.255 scope global secondary eth0:7
ip address del 192.168.99.37/24 dev eth0

ifconfig eth0:0 192.168.1.2 netmask 255.255.255.0 up
ifconfig eth0 192.168.2.2 netmask 255.255.255.0 broadcast 192.168.2.255

http://linux-ip.net/html/tools-ip-address.html

http://linoxide.com/linux-command/use-ip-command-linux/

http://unix.stackexchange.com/questions/152331/how-can-i-create-a-virtual-ethernet-interface-on-a-machine-without-a-physical-ad

Check Replication between Domain Controllers

Replication is based on pull, so you should focus on “Destination DSA” and “Inbound Neighbors”

repadmin /replsum chn-dc /bysrc /bydest /sort:delta
repadmin /replsum * /bysrc /bydest /sort:delta

  Repadmin /showrepl /repsto – This command displays the replication partners for each naming context that is held on the specified DC. This enables you to build a picture of the replication topology.

Repadmin /queue – This command run against a particular DC determines if its replication queue has any entries. If it has it may indicated it is overloaded.

Repadmin /viewlist * – this lists all the DCs in the Forest. This is limited at this point to output upto 999 DCs


http://technet.microsoft.com/en-us/library/cc811565%28v=ws.10%29.aspx
Repadmin /showmeta (http://support.microsoft.com/kb/229896)

http://technet.microsoft.com/en-us/library/cc811556%28v=ws.10%29.aspx

repadmin /replicate (http://technet.microsoft.com/en-us/library/cc811569%28v=ws.10%29.aspx)

http://blogs.msdn.com/b/canberrapfe/archive/2012/04/12/granular-manual-ad-replication-for-advanced-troubleshooting-scenarios.aspx