05-09-2013
Put the two lines into a script, and run the script. Surprisingly it doesn't seem to disconnect anybody (at least 99 times out of a hundred.)
This User Gave Thanks to jgt For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi ,
I had rebooted my Sun Machine 2 days back...
I was going thru my messages file ... I notice this messages
Bootpd :- IP address not found x.x.x.x
Wat is this bootpd and why is it looking for IPs ...
How do i turn it off ..
JD (1 Reply)
Discussion started by: Jai
1 Replies
2. UNIX for Dummies Questions & Answers
This is definitely a post from a "UNIX Newbie" - we have a SCO Unix machine that houses our customer database. I have been getting reports that the system starts lagging intermittently, and have managed to determine that the cause of the slowdown is a process called MMDF.
I can manually kill... (4 Replies)
Discussion started by: QmanV2
4 Replies
3. UNIX for Dummies Questions & Answers
On a sparc solaris 8 host running sunone webserver 6 I would like to limit the http requests that can be used when port 80 is accessed. We currently have http/1.0 enabled.
For example I would like to remove the http request DELETE.
Regards,
BLP (1 Reply)
Discussion started by: blp001
1 Replies
4. UNIX for Advanced & Expert Users
I am running Solaris 9 and wanted the CDE stopped when my users login. Can this be done by adding something to the .profile? Basically when they login they should be at the command line and have to start the CDE themselves.
Thanks (11 Replies)
Discussion started by: meyersp
11 Replies
5. Solaris
Hi everybody,
i have downloaded some archieves but i couldn't compile it without errors. please help... where can i find a bootp that works?!
my hardware: sparc prozessor with solaris 8 (5.8 (2.8))
thanks
Johnny (0 Replies)
Discussion started by: johnnypark
0 Replies
6. Shell Programming and Scripting
How can i convert this case statement that i made to an if statement? Do not write script, just give a hint on how to do something below.
#!/bin/sh
hi="$1"
case "$hi"
in
) exit 0;;
* ) exit 1;;
esac
echo "$hi"
Here is what i got so far for... (2 Replies)
Discussion started by: brentdeback
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Is there any way like in dos to turn the echo off in a script? i have some lines popping up that i dont wish to be viewed when i am unziping a file it brings up the message updating: log.txt (deflated 72%) and extracting: log.txt i dont want these be viewed.
Andy (4 Replies)
Discussion started by: chapmana
4 Replies
8. AIX
Hi,
What's the best way to turn on the auditing in AIX 4.3? I'm in an environment where root password are shared with many users.
Can sudoers member be audited properly?
Thanks (1 Reply)
Discussion started by: itik
1 Replies
9. Solaris
For two straight days someone was running in.ftpd in my server (apparently looking to break in) and when I would do "top" almost every line would read "in.ftpd". I had a unix sysadmin friend of mine shut it down and then start it back up in a day and a half and all seems OK for now.
Here's what I... (1 Reply)
Discussion started by: thomi39
1 Replies
10. AIX
Hi Guys,
I have a database server where we run AIX 5.3 on a power5 box and we just turned on CIO (concurrent I/O) for the database filesystems. Now my assumption is that enabling CIO the database basically will bypass the filesystem cache releasing some extra memory that can be allocated... (1 Reply)
Discussion started by: hariza
1 Replies
LEARN ABOUT XFREE86
setuid
SETUID(1) General Commands Manual SETUID(1)
NAME
setuid - run a command with a different uid.
SYNOPSIS
setuid username|uid command [ args ]
DESCRIPTION
Setuid changes user id, then executes the specified command. Unlike some versions of su(1), this program doesn't ever ask for a password
when executed with effective uid=root. This program doesn't change the environment; it only changes the uid and then uses execvp() to find
the command in the path, and execute it. (If the command is a script, execvp() passes the command name to /bin/sh for processing.)
For example,
setuid some_user $SHELL
can be used to start a shell running as another user.
Setuid is useful inside scripts that are being run by a setuid-root user -- such as a script invoked with super, so that the script can
execute some commands using the uid of the original user, instead of root. This allows unsafe commands (such as editors and pagers) to be
used in a non-root mode inside a super script. For example, an operator with permission to modify a certain protected_file could use a
super command that simply does:
cp protected_file temp_file
setuid $ORIG_USER ${EDITOR:-/bin/vi} temp_file
cp temp_file protected_file
(Note: don't use this example directly. If the temp_file can somehow be replaced by another user, as might be the case if it's kept in a
temporary directory, there will be a race condition in the time between editing the temporary file and copying it back to the protected
file.)
AUTHOR
Will Deich
local SETUID(1)