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 have been working with Ubuntu server for a little while (on a basic level - i.e. I am still very much a newbie), but would like to improve the security on my server. I have googled quite a bit, but am so confused by all out there, that I thought I would see if I can get a concise answer out of this forum (My first post, so let's hope I introduce myself without blowing anything!).
What prompted this:
I installed postgresql 8.4 (I am on Ubuntu Server 9.10) using apt-get. Postgresql is working, and I can connect remotely using PGAdmin III.
However, I have a java app that runs on the server, and when I try and start it now, using ./start-app.sh, I get: "bash: ./start-app.sh: Permission denied".
This has never happened before, so I figured it is something to do with the Postgresql install (it creates a user on the server, and since this is the only change I thought it might be that process).
In my googling, I have also come across the /var/log/auth,log file, and I see people are trying to hack the server.
This has prompted me to want to know what is wrong, and how to fix it.
Simple question, not such a simple answer I know, but if anyone out there would like to help me in more of a step by step process, I would be eternally grateful.
As I said, I am actively looking, but would love some help!
I am having fun here! Just lost my reply.
Anyway, I was logged in as root (via sudo) when trying to execute the ./start-app.sh.
the output of your code: -rw-r--r-- 1 root root 37 2010-04-21 17:19 ./start-app.sh
You got me thinking though, and I had not added 'x' permission to the actual .sh file before, so never thought to add it now.
I added it, and now it runs.
Weird, because it used to run before without that, so something did happen to the security I'm sure, I'll still try and figure out why, but at least the app is working!
If you do have a comment about the output, I would love to hear it.
I'll close the thread though, thanks again.
I suspect your script was either recreated or renamed (via mv) - and thus default permissions were set on the script (rw-r--r--). By default any new file created doesn't have execute permissions unless you explicitly set the execute permission.
Except it was installed prior to this 'issue of mine', and executing.
Just stopped after PG install, although I subsequently thought I also did apt-get update and apt-get upgrade before installing PG.
Not sure if any of those security updates would have done anything.. don't imagine so.