Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-14-2012, 07:57 AM
|
#1
|
LQ Newbie
Registered: May 2012
Posts: 14
Rep: 
|
what is the " uausers.sh" command in Linux and how i can block a single user
Hi Everybody,
i am working with ASYCUDA System (Automated Customs Data) and using Linux Enterprise and Oracle 10g.
so there are many users and clients in my Network.
can you please let me know how i can Block a single user in order to don't connect to the network or how i can kill a single User.
"uausers.sh" is a command for that, but i am going to use more and know how to completely block a single user.
Thanks,
|
|
|
05-14-2012, 08:30 AM
|
#2
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
I don't recognize "uausers.sh" but from its name and what you've written I'm guessing it is a shell script written to be used in your environment. Shell scripts are in text so you can view them (and even edit them if you know what you're doing.).
Type "which uausers.sh" to find out the location of (full path to) the script. Then type "cat <fullpathto>/uauser.sh" to see what is in it. If you don't understand it you can paste it here and we can help see what it is doing.
|
|
|
05-22-2012, 04:45 AM
|
#3
|
LQ Newbie
Registered: May 2012
Posts: 14
Original Poster
Rep: 
|
i have two servers, Main server and Backup Server, on main server from every position i can use " uausers.sh" and its running, but in backup server i am not able to do so, i have to go to its position and run the file.
is there any possibilities to do something to run a file from every place and position?
thank
|
|
|
05-22-2012, 04:48 AM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,443
|
As described above, simply prefix with the location/path eg if the file is in /usr/bin, then
Code:
/usr/bin/uausers.sh
Also as above, a 'shell' file is simply ASCII text, so you can/should look at it using the cmd above.
|
|
|
05-22-2012, 06:20 AM
|
#5
|
LQ Newbie
Registered: May 2012
Posts: 14
Original Poster
Rep: 
|
thanks Chris,
the "uausers.sh" location is " /apt/utasy/uausers.sh
in the main server from every location i can call the "Uausers.sh" but in my backup server i am not able, but i have to go to the file location and open it.
in the main server it has been installed by my IT Manger and in backup server i installed my self, so now i want to know how can i do and call the "uausers.sh" from every location of my prompt.
|
|
|
05-22-2012, 07:11 AM
|
#6
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
You can define the directory in which it is installed in your PATH variable.
On the system where you can call it from anywhere do "echo $PATH" to see what the PATH variable has in it. It likely has something along the order of:
/bin:/usr/bin:/usr/local/bin:/apt/utasy
The items separated by colons are the directories (paths) where executables are searched for when you do not type the full path to the command. They are searched in the order they appear in the variables. So if you had the same command in /bin and /usr/local/bin and typed only the short name of the command it would find the one in /bin but not the one in /usr/local/bin. On the other hand if the command only exists in /usr/local/bin it would find it there after first searching for it (and not finding it) in /bin and /usr/bin.
The PATH variable is typically set in system and/or user profiles. The system profiles are things like /etc/profile, /etc/bashrc, /etc/bash_profile and the user profiles are the dot files in a user's home directory such as .profile, .bashrc and .bash_profile. Note there are different profiles for different shells - csh (C shell) uses completely different profile files. You can find out what profiles are looked for by reading the manual page of the shell (e.g. type "man bash" to see the manual for bash shell.)
You can edit one of the profile files to add the /apt/utasy to the end of the PATH= statement. Then on next login it should show it in your PATH variable (echo $PATH).
You can also quickly add a directory to an existing PATH variable by appending:
PATH=$PATH:/apt/utasy
Note that such an addition is only valid for the session in which you do it. As noted above to make it permanent you have to add to one of the profiles.
|
|
|
All times are GMT -5. The time now is 01:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|