Skip to main content

Posts

Showing posts from October, 2012

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 ...