12. How to create null file?

- cat /dev/null > filename1

17. How to know the date and time for . when script is executed ?

- Add the following script line in shell script.eval echo “Script is executed at `date`” >> timeinfo.infHere, .timeinfo.inf. contains date & time details ie., when script is executed and history related to execution.

18. How to save man pages to a file ?

- man | col .b > Example : man top | col .b > top_help.txt

20. List some Hot Keys for bash shell ?

- Ctrl+l . Clears the Screen. Ctrl+r . Does a search in previously given commands in shell. Ctrl+u - Clears the typing before the hotkey. Ctrl+a . Places cursor at the beginning of the command at shell. Ctrl+e . Places cursor at the end of the command at shell. Ctrl+d . Kills the shell. Ctrl+z . Places the currently running process into background.

21. Display the processes, which are running under your username ?

- ps .aef | grep MaheshvjHere, Maheshvj is the username.

22. Set the Display automatically for the current new user ?

- export DISPLAY=`eval ‘who am i | cut -d”(” -f2 | cut -d”)” -f1′`Here in above command, see single quote, double quote, grave ascent is used. Observe carefully.

24. Explain about Solaris?

Solaris is a UNIX based operating system which is available for free. It supports workstations and servers from sun. It is widely recognized for its scalability. This product is almost supported by many server vendors. It is the famous successor to sun operating systems.

25. Explain the interoperability features of Solaris?

Solaris UNIX version runs on intel, AMD and SPARC platforms. It has migrated from solely a SPARC platform to include other platforms from leading companies. It provides interoperability across various technologies such as developer products, desktop applications, data center, etc.

26. Describe about Logical Domains and its functions?

LDOMS system administrator center provides resources and links to developers who are trying to install Ldoms technology. It gives you flexibility to group system resources and discrete systems within a computer system physically. It allows you to group system resources physically within its own operating system, identity and resources.

27. What is RBAC?

RBAC is introduced into Solaris for managing specific tasks. These specific tasks are based and defined in the administrator profile. It is based on the standard developed by NIST. RBAC is a very important tool for performing multiple tasks. It also separates tasks which require high technical knowledge from low ones.

28. What is Solaris Roles?

RBAC implementation depends upon the role specified in the administrator profiles. Roles are implemented according to the profile. Also access to certain files and configuration can be assigned by the user profile. It also allows RBAC to differentiate high technical knowledge roles from low ones.

29. What are the three different system management roles?

There are three different roles specified by Solaris they are
1) Primary administrator who is responsible for security
2) System administrator is responsible for day to day roles
3) Operator is responsible for data back up and maintenance.

30. What are the different ways to execute profiles?

Profiles can be executed in many different ways some of them are
1) Pfexec executes a single command in profile
2) With some restrictions pfsh and pfcsh can be executed.
3) By directly logging into the account using su.

31. What is sudo?

Sudo maintains database of all the privileges assigned to a user name. These privileges can be indentified by different commands present in the database. This feature helps a user to format a disk but the root system cannot be changed.

32. Explain about the limitations present in sudo?

There are some limitations for sudo which makes RBAC popular they are
1) It is not possible to assign a user to work on specific file or profile.
2) It is also not possible to assign a user to work on a specific command.
3) By using shell commands and certain functions it is possible to have some restrictions on a user but it would consume time for a larger setup.

33. Explain about the command ls?

Ls command gives a way to the main directory and also gives access permissions for files in Solaris. It displays and prints user and group ownerships, file access permissions, filename and files size and creation date.

34. Explain about sticky bit permissions?

This command helps the network administrator to relax a bit. This command will not allow the deletion of the common files present in the common area. This command helps the users by not allowing them to rewrite on other files. Certain permissions can be set which will restrict users to delete files created by them.

35. How can you determine whether a file is setUID?

The easiest way to determine whether a file is setUID or not by checking for files which are owned by the root and after checking for files that are owned by root you can check for s flag files assigned to the user permissions. In the permission table the first s refers to setUID root.