10-31-2014
Quote:
Originally Posted by
nanz143
Okay... I thought to give a try and wanted to learn... Thank you ..!!
There is nothing to learn, given the circumstances. There are certain system administration privileges and they are given to certain persons - all that for a reason! If you do not have these privileges you either need to get them (temporarily or permanent) or you should not get them.
In other words: get root privileges and you are able to exercise them or don't get root privileges and subsequently don't exercise them. It would only mean that the system is poorly set up if you could do something which should only be available to root without actually being root.
UNIX systems (and Linux systems in this respect are UNIX systems too) are very secure designwise. It is possible to set up a UNIX system with poor security, but all the means to get a very secure system are there and can be used if the owner of a system wants that. Even the default setup of systems is - designwise - secure. What you wanted would be a severe breach of security. It is possible to get that but only if the system is very poorly set up and some default security means are purposefully worked over to allow for that mode of operation.
I hope this helps.
bakunin
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello Unix Champs,
For keeping audit trail, I want to log the commands entered by the normal users, on their terminal into a text file.
I tried putting a "script -a username.timestamp.txt" in the user profile file, but script command stops execution when user types exit or presses CTRL+D... (3 Replies)
Discussion started by: bhaven.haria
3 Replies
2. Solaris
Hi all
I want to know the commands executed a by particular user .. for the whole day on my machine.
I have checked out with the commad
$lastcomm <user>
It is throwing an error called: ..
/var/adm/pacct: No such file or directory
Can u help me in this regard..
Thank U... (3 Replies)
Discussion started by: naree
3 Replies
3. Solaris
Hi all
I want to know the commands executed a by particular user .. for the whole day on my machine.
I have checked out with the commad
$lastcomm <user>
It is throwing an error called: ..
/var/adm/pacct: No such file or directory
Can u help me in this regard..
Thank U
Naree (1 Reply)
Discussion started by: naree
1 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I am new to unix OS.
Commands(external commands) given by the user are examined by shell and later executed by kernel.
Now I want to know how the internal(built in) commands are executed.
Please clarify whether they are executed directly by shell or by kernel.
Thanks in... (2 Replies)
Discussion started by: chaitra
2 Replies
5. Shell Programming and Scripting
Hi,
I have executed a set of commands on the linux server and later rebooted the server. Is it possible to get the details of the commands I executed prior to the reboot? If yes please let me know how?
Thanks. (1 Reply)
Discussion started by: yoursdavinder
1 Replies
6. UNIX for Dummies Questions & Answers
how to execute more than one command at the same time in unix .. (4 Replies)
Discussion started by: hemaa
4 Replies
7. Shell Programming and Scripting
Dear friends,
Whenever I do logout from a session initiated by ssh/su, I need to print a small report which says the login time, logout time, commands got executed..
How can it be done?
I know when doing ssh, .profile file will get executed. Shall we do something with the help of it. (1 Reply)
Discussion started by: nagalenoj
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
how to overcome this warning issue.
code:
#echo 'ls > /home/rxcprod/a.out' | at -q a now
warning: commands will be executed using /usr/bin/sh
job 1318943704.a at Tue Oct 18 09:15:04 2011 (4 Replies)
Discussion started by: tushar_spatil
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have cleared the commands by using >$HOME/.sh_history.
But if i issue HISTORY it shows some reference numbers but not the commands executed.
But i want to truncate those line numbers too.
May i know how i can achieve this?
Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies
10. Shell Programming and Scripting
Hi guys,
I am executing a pretty long ksh script and need to time stamp every command which runs inside.
Unfortunatly 'echo date' is not the option here.
May be someone knows another way or utility which can be used to log executed command and timestamp next to it.
Thanks
PS I work in ksh88 (4 Replies)
Discussion started by: aoussenko
4 Replies
LEARN ABOUT ULTRIX
lastcomm
lastcomm(1) General Commands Manual lastcomm(1)
Name
lastcomm - show last commands executed in reverse order
Syntax
lastcomm [command name...] [user name...] [terminal name...]
Description
The command gives information on previously executed commands. With no arguments, prints information about all the commands recorded dur-
ing the current accounting file's lifetime. If called with arguments, only accounting entries with a matching command name, user name, or
terminal name are printed. The following example produces a listing of all the executions of commands named by user root on the terminal
ttyd0:
lastcomm a.out root ttyd0
For each process entry, the following are printed:
The name of the user who ran the process.
Flags, as accumulated by the accounting facilities in the system.
The command name under which the process was called.
The amount of cpu time used by the process (in seconds).
The time the process exited.
The flags are encoded as follows:
``S'' indicates the command was executed by the super-user
``F'' indicates the command ran after a fork, but without a following exec
``C'' indicates the command was run in PDP-11 compatibility mode (VAX only)
``D'' indicates the command terminated with the generation of a core file
``X'' indicates the command was terminated with the signal SIGTERM
See Also
last(1), sigvec(2), acct(5), core(5)
lastcomm(1)