10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
Part of our security audit we found that following system account's had shells configured;
sync
halt
shutdown
I believe this can be achieved by following commands:
chsh -s /sbin/nologin (user)
usermod -s /sbin/nologin (user)
However, I would like simple script to... (5 Replies)
Discussion started by: Gamma
5 Replies
2. Solaris
Hi,
Want to know, is there any way to restrict a Solaris user to Single Login. Means a particular user can login once and if he or someone else tries to login with his ID then a message displayed "user already logged in" and denies his attempt.
Regard,
Jeet (1 Reply)
Discussion started by: CountJeet
1 Replies
3. Solaris
Trying to figure out the best method of security for oracle user accounts. In Solaris 10 they are set as regular users but have nologin set forcing the dev's to login as themselves and then su to the oracle users.
In Solaris11 we have the option of making it a role because RBAC is enabled but... (1 Reply)
Discussion started by: os2mac
1 Replies
4. Shell Programming and Scripting
Hi
Iam running the below scripts on one file on solaris 10 but its giving error.
code
sh BNGREPORT1.sh z1 code in file BNGREPORT1.sh is given below.
root@blr-svr-oclan-01 # more BNGREPORT1.sh
#!/bin/sh
#cd /surender
FILE="bng_total_report_$(date +%Y%m%d_%H%M%S)"
echo HOST_NAME "|"... (4 Replies)
Discussion started by: surender reddy
4 Replies
5. UNIX for Dummies Questions & Answers
dear all
i need your advice in shell with solaris
i have testing script like this
#!/usr/bin/bash
function test(){
echo "testing only"
}
## execute function ##
test
but if i running always got error like this
test.sh: syntax error at line 1: `(' unexpected
who can i running this... (7 Replies)
Discussion started by: zvtral
7 Replies
6. UNIX for Dummies Questions & Answers
Is it possible to SSH with an account that has its shell set to /sbin/nologin?
The reason I ask is because I am running an instance of nagios where I need to use SSH keys to run a check, but I am getting connect errors in Nagios. Also, what is the risk I run into if I just simply change my... (2 Replies)
Discussion started by: streetfighter2
2 Replies
7. Shell Programming and Scripting
Hi,
Need one clarification..
If suppose, I have disabled the login to a particular user XXX, but not deleted the user.
So the scripts which must be executed using the user XXX can still be executed using that user or is it not possible..?
In our tasks, we are disabling the user XXX, and after... (1 Reply)
Discussion started by: Dpu
1 Replies
8. Shell Programming and Scripting
Hi,
Can somebody pls help me? I need to write 2 shell scripts in Sun Solaris operating system which would do this:
1. go to the specified directory - I am using alias for it at the moment
2. start the particular sql script with the output log as same as the script but with timestamp e. g.... (4 Replies)
Discussion started by: balco
4 Replies
9. Solaris
Hi All,
If I login to Solaris 9 by default. I can't find my history. If I run the bash shell by /etc/bash/bash then my history will go to my ~/.bash_history.
If I don't use bash where's my history of command go.
Thanks in advance. :confused: (2 Replies)
Discussion started by: itik
2 Replies
10. AIX
is the nologin shell available in AIX 5.2? I am familiar with the nologin shell in linux and restricting shell access but still allowing ftp etc. Can this be done in AIX? I have not been able to locate any documentation. Thanks in advance (5 Replies)
Discussion started by: zuessh
5 Replies