Skip to main content

Posts

RBAC In Solaris System's

RBAC are the sole assignment for User's. other hand we can say that. This is equivalent of su in linux RBAC in Solaris System's Create a user "singh" with a profile shell and "Limited" profile: /etc/passwd foo:x:101:1::/export/home/singh:/usr/bin/pfsh /etc/user_attr singh::::type=normal;profiles=Limited Create the "Limited" profile: /etc/security/prof_attr Limited:::only can run some limited commands: /etc/security/exec_attr Limited:suser:cmd:::/export/home/singh/bin/Address:uid=0 Create an example script : #vi /export/home/singh/bin/Address #!/bin/sh /usr/sbin/ifconfig -a :wq! Remove default auths and profile from all users. Note – this is required so that the singh user doesn’t get the “Basic Solaris User” profile, which allows all user level binaries to be run. This however (As root), check auths and profile of singhuser: # auths singh auths: singh : No authorizations # profiles singh Limited # profiles -l singh Limit...

How to Add Hard drive and create partition on solaris

How to Add a Hard Drive to Solaris 10 Here’s how you would add a hard drive to Solaris 10, including the format, fdisk, partition, and then creation of the file system. Of course, you first need to actually add the hard drive physically to the machine, I’m not going to cover that – if you don’t know how to do that then the rest of the information isn’t going to help! If you installed a drive through VMWare while the VM is running, you will need Solaris to recognize the new drive. In this case, run devfsadm , otherwise boot your system and Solaris should recognize the new drive. # about devfsadm:- devfsadm maintains the /dev/namespace. it replace the previous suite First, here’s the original drives (c0t0d0 & c1d1d0): # ls /dev/rdsk/*s0 -------> search all Hdd in solaris system.  for example those /dev/rdsk/c0d0s0 /dev/rdsk/c1d1s0 Have Solaris check for new hardware: if new hdd is not recognize then run this command # devfsadm Now you can see there ...

Openldap server and client configration in rhel6 with tls

lets see the openldap server setup configuration on rhel 6   In my setup  my server name is:- node5.example.com ipaddress is :- 192.168.0.100/24 domain name is:- example.com openldap-server version is:- openldap-servers-2.4.23-20 my server os is:- RedHat Enterprise Linux 6.2 Step 1: first we need to install the required packages: # yum install openldap-servers openldap-clients here the openldap-server for configure the ldapserver and openldap-clients for configure the client.. Step2: As the configuration for LDAP is stored inside the LDAP server itself the configuration is in this /etc/ openldap /slapd.d/ directory. First of all we need set the password for administrator(we called it Manager) by using this command. # slappasswd password: mypasswd retype-password: mypasswd you’ll get something like this ” {SSHA}r2or9f2vYlvieCu0LP6wTnSdYfrddsuV ” as a result. This is the string we will have to add into config file. So we need to copy i...

website Downloading by wget command in linux

we have need to download an entire Web site, perhaps for off-line viewing, so for do that we are using so diffrence tools. In linux we can download the entire site by using wget.  wget can do the use those command...... $ wget \ --recursive \ --no-clobber \ --page-requisites \ --html-extension \ --convert-links \ --restrict-file-names=windows \ --domains chauhan-rhce.blogspot.com \ --no-parent \ www.chauhan-rhce.blogspot.com This command downloads the Web site www.chauhan-rhce.blogspot.com. The options are: --recursive: download the entire Web site. --domains chuahan-rhce.blogspot.com: don't follow links outside website.org. --no-parent: don't follow links outside the directory tutorials/html/. --page-requisites : get all the elements that compose the page (images, CSS and so on). --html-extension : save files with the .html extension. --convert-links : convert links so that they wo...

Windows 7 God Mode

  Magic of Windows 7................................... It is simply a new menu for navigation in windows 7 and very simple to set up. Simply create a folder on your desktop and follow below directions. Step 1 : Right click on your desktop Step 2 : Click create folder. Step 3 :   rename this folder and name should be that, "GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}" and press enter. Step 4 : Blink as the folder changes form to look like the control panel. Click on it and it opens the new menu.

Unix & Linux System Administrator Reponsbilities

The roll of the System Administrator on a linux or unix like system involves a number of varied and complicated tasks. A defined and well thought out approach to these tasks is the key to running efficient and reliable systems. The following is a small list of some of the important duties of the System Administrator. Filesystem Integrity and Free Space: A breakdown in filesystem integrity means the potential loss of critical data. As such, the System Administrator must check filesystem integrity on a regular basis and repair any inconsistencies as soon as they are found. The availability of free space is also the concern of the System Administrator. Periodic checking, daily, hourly, or as required is essential in preventing a file system from filling completely and causing downtime. Configuration Files: Many configuration files will require modification over the lifetime of an installed system. The System Administrator must document all changes and maintain backup copies of previous...

ls Command Use's in Linux

ls* Commands Are Even More Useful Than You May Have Thought E verything is a file under Linux and ls* and friends can help you to dig out more information from the system than you originally thought. These Linux tips may come in handy when you need to find out information quickly without going through /proc or sysfs. #1: lsscsi See list SCSI devices (or hosts) and their attributes under Linux operating systems: $ lsscsi -g Sample outputs: [0:0:0:0] disk Adaptec RAID1-A V1.0 /dev/sda /dev/sg0 [0:1:0:0] disk SEAGATE ST373455SS 0006 - /dev/sg1 [0:1:1:0] disk SEAGATE ST373455SS 0006 - /dev/sg2 [1:0:0:0] cd/dvd TEAC DV-28E-R 1.8A /dev/sr0 /dev/sg3 #2: lsblk Use this command to list block devices # lsblk Sample outputs: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 68.3G 0 disk ├─sda1 8:1 1 716M 0 part /boot ├─sda2 8:2 1 8G 0 part [SWAP] └─sda3 8:3 ...