0
votes
2answers
100 views

What seems wrong with this bash script? [closed]

I found an initscript that for some reason insists on starting the specified application as the root user. I can't wrap my head around why it is doing this, any hints? The script runs on Redhat ...
1
vote
1answer
34 views

Mongo is not account specific

I have mongo running on my system however I can access all my databases/collections from other peoples accounts. Can I secure specific collections? How do I block access to my collections but not cut ...
2
votes
3answers
852 views

Shell script to scan size of directories and email when too big

I am at work right now, and my superiors asked me to write/find a shell script for the Red hat Server edition that checks a folder size, and if it's above a certain limit, it will send an email.Can ...
2
votes
4answers
7k views

How to add a linux user in single line?

Is there any option to add a user in single line. it includes the password. Dont prompt anything. OS=RHEL 5.5
0
votes
2answers
1k views

Run VMware player in shell mode?

Is there a way to run vmware player in shell mode? I'm accessing the PC remotely and only have access to the RHEL shell and not the GUI. Thank you. Regards, Rayne
4
votes
4answers
891 views

Accidentally ran chmod 775 -R / (not ./) on linux server (RedHat)

I accidentally ran "chmod 775 -R /" instead of "chmod 775 -R ./" and changed the permissions for everything and now the server is broke. Anyone know how I can quickly fix this???
2
votes
1answer
735 views

how to rotate console.log in every day…? [duplicate]

Possible Duplicate: Script to delete files older than 30days My hard disk suddenly became full and I searched around until I finally discovered that a "console.log.9" file buried in ...
4
votes
5answers
3k views

Script to delete files older than 30days

Shell script should not delete any files under* root dir*. My* path will be like /export/home/ftp/ ... I did some research and figured out the way for finding and deleting the files older than 30 ...
0
votes
2answers
721 views

how to write a Script to stop jboss and rename the corresponding log file in redhat

i want to write a shell script to stop my currently running jboss applications(may more than one jboss running in one server) and rename the corresponding log files generated in the log ...
2
votes
4answers
267 views

How to write to a file and, while the file is still being written, read and parse its contents using a shell script?

I'm actually trying to write a shell script that logs the output of a command to a file, but since the command takes a long time to complete (about 15 minutes), I would like to start parsing the ...
5
votes
2answers
3k views

On Redhat, what does “kernel.suid_dumpable = 1” mean?

I'm running a bash script to copy some log files and then restart a service on a Red Hat box. Every time I execute the script, I get the following on my console: [root@servername ~]# sh ...
1
vote
5answers
935 views

Redhat Shell Scripting condition test symantics

I am using Redhat Enterprise 5.3, and I have a small script that reads the directory name and compares it against a variable. Something seems to be causing it to think I am trying to get it to run ...
1
vote
9answers
10k views

How to run a .sh file in Red Hat?

when I tried to run my .sh file in Redhat using ./test.sh I am getting a error like [test@tester unix_scripts]$ ./test.sh : No such file or directory [test@tester unix_scripts]$ I have also set ...