what is the " uausers.sh" command in Linux and how i can block a single user
Linux - NewbieThis 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!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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?
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.
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:
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:
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.