Sponsored Content
Full Discussion: checking uid
Top Forums Shell Programming and Scripting checking uid Post 302127669 by matrixmadhan on Thursday 19th of July 2007 03:12:15 AM
Old 07-19-2007
use $USERNAME

Code:
if [ $USERNAME != 'root' ]
 then
  echo "you are not root"
 else
  echo "you are root"
 fi

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UID problem

I'm teaching myself UNIX, so bear with me! :) I created two user accounts on my box. One day I shut down the system using "shutdown -h 1". The system shut down cleanly. A few days I rebooted the box, no problem. But root is the only account that can log in. The other 2 user accounts... (10 Replies)
Discussion started by: ChrisFoxx
10 Replies

2. UNIX for Dummies Questions & Answers

Reversing UID's

Is it possible given a uid to determine information about the person with the uid? An example would be simple information regarding what group and the name of the person associated with that uid. It seems there is probably an easy staring me in the face but i cant seem to find it... (3 Replies)
Discussion started by: dreaming1
3 Replies

3. Shell Programming and Scripting

Shall I go for uid or ppid?

Hi Guys, I'd like to ask your advice on the following, I've written this script to terminate a given process by name: #!/bin/bash echo 'Please enter the process you wish to terminate' read process pid=$(pidof $process) kill -9 $pid echo $2 to make it safer I want it to reject the... (4 Replies)
Discussion started by: Lora Graham
4 Replies

4. Shell Programming and Scripting

uid script help

i need a script to process a password file and based on the UIDs in the password file, generate the new UID that is 1 greater than the highest uid. i have some script logic but i dont really understand it. any help? #!/usr/bin/perl ########################################## #... (3 Replies)
Discussion started by: livewire06
3 Replies

5. Shell Programming and Scripting

UId

is tty command opens a process in the system if yes then why process got the userid????? (5 Replies)
Discussion started by: Mac91
5 Replies

6. UNIX for Dummies Questions & Answers

Duplicated UID

Hi folks! I need you help to discover what's the impact of a duplicated UID in an operating system. What's the meaning when someone put in different users the same UID? (3 Replies)
Discussion started by: phcostabh
3 Replies

7. AIX

More than 1 UID 0

Hi, Can any one please tell what are the risks of having more than one users having UID 0 (root)? Thanks Naveed (9 Replies)
Discussion started by: naveedaix
9 Replies

8. Solaris

Changing uid value

Hi, I want to change user id gefadm ,uid=0(root) gid=0(root) to uid=16649(isaadmin) gid=16284(dstage), how can i change this uid ,gid one value to another value. Please provide the steps how can i change , uid=0(root) gid=0(root) to uid=16649(isaadmin) gid=16284(dstage). Thanks in advance for... (2 Replies)
Discussion started by: sridhardwh
2 Replies

9. Solaris

UID Admin

Hi All, I have to give permission to one of the groups called as "ABC" as like the permissions of the group "UNIXADM". Could you please some one help on this issue ? (3 Replies)
Discussion started by: ramareddi16
3 Replies

10. SCO

Stop boot system at "Checking protected password and checking subsystem databases"

Hi, (i'm sorry for my english) I'm a problem on boot sco unix 5.0.5 open server. this stop at "Checking protected password and checking subsystem databases" (See this image ) I'm try this: 1) http://www.digipedia.pl/usenet/thread/50/37093/#post37094 2) SCO: SCO Unix - Server hangs... (9 Replies)
Discussion started by: buji
9 Replies
ZNC(1)							      General Commands Manual							    ZNC(1)

NAME
znc - An advanced IRC bouncer SYNOPSIS
znc --help znc --version znc --makepass znc [-n] [-d datadir] [-D] [-f] znc [-n] [-d datadir] [-D] [-f] --makeconf znc [-n] [-d datadir] [-D] [-f] --makepem DESCRIPTION
znc is an IRC proxy. It runs as a daemon and connects to IRC server, then allows you to connect from a workstation and work as the user that is logged in to the IRC server. After you disconnect, it maintains the connection to the server. It acts like any normal IRC server, so you can use any IRC client to connect to it. OPTIONS
-h, --help Output a brief help message. -v, --version Show the full version number. -n, --no-color Don't use any color escape sequences. -f, --foreground Don't fork the ZNC process into the background. -D, --debug Print debug output to the console. Implies --foreground. -d DATADIR, --datadir=DATADIR Specify another datadir. This is where znc saves everything. -c, --makeconf Interactively create a new configuration. -s, --makepass Hash a password for use in znc.conf. -p, --makepem Generate znc.pem. This is the server certificate znc uses. You need this for SSL. -r, --allow-root Don't complain if ZNC is run with root privilegies. SIGNALS
This section explains how znc reacts to different signals: SIGINT Exit ZNC. This is equivalent to /znc shutdown SIGHUP Reload znc.conf. This is equivalent to /znc rehash SIGUSR1 Rewrite znc.conf. This is equivalent to /znc saveconfig FILES
/usr/local/share/znc/ Static module data like webadmin skins /usr/local/lib/znc/ znc installs its modules to this directory. /usr/local/include/znc/ These are the headers needed for compiling own modules. ~/.znc This is the default datadir. The following paths assume that you use this. If you change this via --datadir then the following lines are relative to that dir. ~/.znc/znc.pem This is the server certificate znc uses for listening on SSL ports. You can generate this via --makepem and you may replace this with your own certificate, if you want to. ~/.znc/modules/ If you compile your own modules, you can save them here. ~/.znc/configs/znc.conf This is the path to znc.conf. Use --makeconf for an easy way to generate it. ~/.znc/users/USERNAME/ The data for every user is saved in this dir. USERNAME refers to the user name of that user. ~/.znc/users/USERNAME/moddata/MODULENAME/ This is where each module can save some stuff. This is mainly used for remembering module settings that are not part of znc.conf. ~/.znc/moddata/MODULENAME/ This is where global modules may save their settings. ZNC
2010-05-10 ZNC(1)
All times are GMT -4. The time now is 07:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy