Permission Denied!

These are old archives. They are kept for historic purposes only.
Post Reply
joethomas3000
Posts: 31
Joined: Tue Oct 26, 2010 12:36 am

Permission Denied!

Post by joethomas3000 »

./unreal: line 10: Unreal3.2/src/ircd: Permission denied

Hello, when starting Unrealircd (./unreal start command) - theres nothing in the log file so what can i do :s
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: Permission Denied!

Post by katsklaw »

make sure you the same user that installed Unreal. "Permission Denied" is a very literal error.
joethomas3000
Posts: 31
Joined: Tue Oct 26, 2010 12:36 am

Re: Permission Denied!

Post by joethomas3000 »

I had to install it with the root user or i would get that annoying no c compiler found for some reason, i tried starting it on root and the normal user aswell... no difference :s
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: Permission Denied!

Post by katsklaw »

joethomas3000 wrote:I had to install it with the root user or i would get that annoying no c compiler found for some reason, i tried starting it on root and the normal user aswell... no difference :s
No IRC application should ever be run as root. Installing as root to avoid a system configuration issue like yours isn't the answer either. If you have a compiler but it can't be seen as a user, that just means it's not installed in $PATH. The solution is to add it to $PATH and not install as root. My advice is to fix your $PATH issue first (just google it). then install as a normal non-root user.

All that said, it's still a permissions issue regardless of who you run it as. "Permission Denied" is a very literal error.
joethomas3000
Posts: 31
Joined: Tue Oct 26, 2010 12:36 am

Re: Permission Denied!

Post by joethomas3000 »

soo... where do i find $path
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: Permission Denied!

Post by katsklaw »

$PATH is a list of directories that will be used to find programs you use. so if you type: gcc, your shell will look in $PATH for that application, if it doesn't exist then it will complain.

Code: Select all

katsklaw@THEBES:~$ which gcc
/usr/bin/gcc
katsklaw@THEBES:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
Notice how my gcc is in /usr/bin ? and /usr/bin is in my $PATH ??

Different distributions act differently as far as where to set your $PATH permanently, sometimes it's .bashrc sometimes it's .profile. You'll just have to find it as configuring gcc is outside the scope of this website. Which is why I said google it.
joethomas3000
Posts: 31
Joined: Tue Oct 26, 2010 12:36 am

Re: Permission Denied!

Post by joethomas3000 »

$PATH seems to be fine...

Code: Select all

root@sting [~]# which gcc
/usr/bin/gcc

root@sting [~]# echo $PATH
/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: Permission Denied!

Post by katsklaw »

Again, get away from root! Try it as a normal user.
Post Reply