Page 1 of 1

Permission Denied!

Posted: Tue Oct 26, 2010 12:41 am
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

Re: Permission Denied!

Posted: Tue Oct 26, 2010 1:31 am
by katsklaw
make sure you the same user that installed Unreal. "Permission Denied" is a very literal error.

Re: Permission Denied!

Posted: Tue Oct 26, 2010 11:23 am
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

Re: Permission Denied!

Posted: Tue Oct 26, 2010 3:07 pm
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.

Re: Permission Denied!

Posted: Tue Oct 26, 2010 4:43 pm
by joethomas3000
soo... where do i find $path

Re: Permission Denied!

Posted: Tue Oct 26, 2010 9:46 pm
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.

Re: Permission Denied!

Posted: Tue Oct 26, 2010 9:59 pm
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

Re: Permission Denied!

Posted: Wed Oct 27, 2010 2:42 am
by katsklaw
Again, get away from root! Try it as a normal user.