LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   In Solaris(command Line ), How to get the previous commands? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/in-solaris-command-line-how-to-get-the-previous-commands-573814/)

kcarun 08-04-2007 09:46 AM

Thanks jlliagre

Yes now it is working ,

In my system i am planing to create one more user ,then how can i controll the use of "pfexec" by that user?

What are the necessary actions while creating an Ordinary user with very low rights?

...Arun

kcarun 08-04-2007 10:12 AM

Accidently i posted 2 times, So edited the msg and removed the comments, ( I dont kow how to remove a posted reply)

Sorry for the trouble
..ARUN

jlliagre 08-04-2007 02:11 PM

Quote:

Originally Posted by kcarun
What are the necessary actions while creating an Ordinary user with very low rights?

A user is already created by default with "very low" rights, i.e. no administrative rights.

You can remove previously granted rights with this command:
Code:

# /usr/sbin/usermod -P "" userid

kcarun 08-05-2007 03:13 AM

jlliagre , Now it is clear.

One of my first cousin is sparingly use my system to view some examination results, I am planing to add a user account for him. Is it possible to create an account with out password? and can log on to GUI for browsing?

jlliagre 08-05-2007 04:10 AM

Passwordless acounts are risky but you can give your cousin an empty password.

spyghost 08-05-2007 09:00 AM

if you are using bash, then the up cursor key will do, but for korn shell, issue first the command set -o vi. to get to the previous command, press escape key followed by small letter k (similar to vi)

sajib123 10-19-2012 02:45 AM

How to get yesterday's command fired in solaris
 
Hi all,

Can anybody help me by providing the path or command to know the list of commands fired yesterday in solaris terminal?

for example as today is 18.10.2012.. I want to know yesterday (17.10.2012) what were the commands fired in solaris terminal.?

pls help.

jlliagre 10-19-2012 03:49 AM

There is no timestamping in shell history so there is no way to get that information unless you are using a recent enough bash release and have properly set the HISTTIMEFORMAT variable. If you are using ksh, there are hacks to have your prompt saving the timestamp in the history file.


All times are GMT -5. The time now is 07:20 PM.