06-21-2011
Hi i try it on a VM Solaris machine and make a user and write exit in his .profile file in his home directory and reboot, when I log in with this user , it accept and the system works, also I try su command it is works too.
---------- Post updated at 04:55 AM ---------- Previous update was at 04:53 AM ----------
sorry when I log in it is not logging , but su command works .
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Following is my /etc/profile script. Everything above the asterisks executes as expected. Nothing below the asterisks executes as I would like it to. Any guidance on what I'm doing wrong would be greatly appreciated :-)
#ident "@(#)profile 1.18 98/10/03 SMI" /* SVr4.0 1.3 */
# The... (3 Replies)
Discussion started by: Mufasa
3 Replies
2. OS X (Apple)
Does any1 know how to preform such an operation on a mac?
any help appreciated (2 Replies)
Discussion started by: cleansing_flame
2 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
Having just started using Unix after a long time on VMS, I end up having multiple Unix and VMS sessions open. Is there a way I can set up a symbol or something so that "lo" means "exit" and exits my session ?
On VMS, if I wanted to do the opposite of this I would do it like this :
... (3 Replies)
Discussion started by: cdines
3 Replies
4. Solaris
I have X4500 and I created a user. I wanted to give him root privileges and for editing the sudoers files I typed visudo sudoers. But it said visudo command not found. After googling I found that we need to set path in etc/profile. I edited that and put the following command
... (3 Replies)
Discussion started by: bharu_sri
3 Replies
5. UNIX for Dummies Questions & Answers
Problem with exit command
-----------------------------------------------------------------------
Hi,
I am executing script written by other user.
I am executing script A.ksh, and A.ksh calls B.ksh.
But It is giving error:
/home/user/B.ksh: exit: -1: unknown option
When I checked... (3 Replies)
Discussion started by: shreyas
3 Replies
6. OS X (Apple)
Hi-
I am newish to the mac osx unix interface. I want to set up top so that it always displays the username. I can use this command to do this:
top -ocpu -P ' PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE USER' -p '$aaaa ^bbbbbbbbb $cccc $wwwwwww $ee... (1 Reply)
Discussion started by: mikey11415
1 Replies
7. UNIX for Dummies Questions & Answers
Please could someone advise me the command - to set up aliases commands within a .profile using shell sh
regards
venhart (13 Replies)
Discussion started by: venhart
13 Replies
8. UNIX for Advanced & Expert Users
Hi,
Want to log the output of command & check the exit status to find whether it succeeded or failed.
> ls abc
ls: abc: No such file or directory
> echo $?
1
> ls abc 2>&1 | tee log
ls: abc: No such file or directory
> echo $?
0
Tee commands changes my exit status to be always... (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies
9. AIX
Hi All,
I have a complicated requirement where in I have a "root" user and a user named "xeadmin" I want to take sudo of "xeadmin" by command sudo su - xeadmin. Later i need to hit 2 enter keys as there are 2 read line commands inserted in profile of "xeadmin" and I reach command prompt, i need... (1 Reply)
Discussion started by: hiteshsathawane
1 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I am new in unix, can anyone please explain the use of:- . $PWD/.profile
Thanks,
Sujoy (5 Replies)
Discussion started by: sujoyrchowdhury
5 Replies
LEARN ABOUT NETBSD
lastlogx
UTMPX(5) BSD File Formats Manual UTMPX(5)
NAME
utmpx, wtmpx, lastlogx -- user accounting database
SYNOPSIS
#include <utmpx.h>
DESCRIPTION
In contrast to utmp and wtmp, the extended databases in utmpx and wtmpx reserve more space for logging hostnames, and also information on a
process' ID, termination signal and exit status.
The <utmpx.h> header defines the structures and functions for logging user. Currently logged in users are tracked in /var/run/utmpx, a list
of all logins and logouts, as well as all shutdowns, reboots and date changes, is kept in /var/log/wtmpx, and the last login of each user is
noted in /var/log/lastlogx.
The interface to the utmpx file is described in getutxent(3).
The wtmpx file can grow rapidly on busy systems, and is normally rotated with newsyslog(8).
In the event of a date change, a shutdown, or a reboot, the following items are logged in the wtmpx file:
date The system time has been manually or automatically updated by date(1). The command name date is recorded in the field
ut_name. In the field ut_line, the character '|' indicates the time prior to the change, and the character '{' indicates
the new time.
reboot
shutdown A system reboot or shutdown has been initiated. The character '~' is placed in the field ut_line, and reboot or shutdown
in the field ut_name (see shutdown(8) and reboot(8)), using logwtmpx(3).
FILES
/var/run/utmpx The utmpx file.
/var/log/wtmpx The wtmpx file.
/var/log/lastlogx The lastlogx file.
SEE ALSO
last(1), login(1), rwho(1), w(1), who(1), endutxent(3), logwtmpx(3), utmp(5), ac(8), init(8), newsyslog(8), reboot(8)
BSD
January 31, 2007 BSD