View previous topic :: View next topic |
Author |
Message |
mr.pig -
Joined: 06 Oct 2005 Posts: 3
|
Posted: Thu Oct 06, 2005 9:37 pm Post subject: Unable to log ... only as root |
|
|
Can I somehow install your software as root user ? |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Oct 07, 2005 2:05 pm Post subject: Re: Unable to log ... only as root |
|
|
mr.pig,
Please read the following guide to know how to set Abyss to be run by root, to use a port < 1024, and to be run automatically upon startup:
* Using a non-root account, install the Abyss Web Server package as explained in the documentation.
* Run it the first time using from this non-root account, go to the console to set the passwords.
* Stop the server.
When abyssws is run from the root account, it "takes" the privileged port (<1024) and it immediately switches to a less privileged account for security reasons (the System User account as configured in Console > Server Conf. > General > Advanced Parameter - It is set by default to the first non-root account you used to run the server). In the following, we explain how to do to fix the permissions:
* Login as root
* cd to your abyssws directory.
* Execute:
chown root abyssws
then:
chmod +Xs abyssws
This will change the owner of the executable file abyssws to root and will set its setuid bit. The setuid bit is useful since any user will be able to run abyssws as if it was root (and can use ports below 1024).
* That's it. log off from your root account.
Now, start abyssws as you used to do (using a non-root user account).
If you want to have Abyss Web Server run automatically at startup time, you should edit the rc.local file in /etc/rc.d and add the line:
/[path to abyss web server]/abyssws -d
where [path to abyss web server] should be replaced by the path where you installed the software. The -d switch instructs Abyss Web Server to run as a daemon (a system service.) Notice that when doing so, the server implicitly runs as root (since root is the only active user during system startup).
When running as root, Abyss can use ports < 1024. So you can log to the
console and change Abyss port to 80. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
mr.pig -
Joined: 06 Oct 2005 Posts: 3
|
Posted: Fri Oct 07, 2005 4:12 pm Post subject: |
|
|
But I said I cannot log as non-root user ...... |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Oct 08, 2005 1:55 pm Post subject: |
|
|
mr.pig wrote: | But I said I cannot log as non-root user ...... |
Why can't you? From your root account you can do anything:
* Create a non-root user account using the adduser or useradd commands.
* switch to this account using the command su.
If you still want to run the server using the root account (at your own risk), use the following command line to launch it:
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
mr.pig -
Joined: 06 Oct 2005 Posts: 3
|
Posted: Sun Oct 09, 2005 10:13 am Post subject: |
|
|
Well, Im using Smoothwall distibution and I wasnt able to find any command suitable for adding users ... I have to be root when communicating with the server.
Thank you very much, cause the -r attribute helped and abyss is ruinning.
Last question - where can I set the DNS servers? I guess I am blind ... but meybe Im not and I have to set it up somwhere else, not in the server console.
BTW Im setting that up from onther computer in the network, cause Smoothwall is feature-limited and has no x-window ... |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Oct 09, 2005 2:41 pm Post subject: |
|
|
mr.pig wrote: | Last question - where can I set the DNS servers? I guess I am blind ... but meybe Im not and I have to set it up somwhere else, not in the server console.
BTW Im setting that up from onther computer in the network, cause Smoothwall is feature-limited and has no x-window ... |
Nothing is Linux-land needs X Window. Most of the configuration can be done using a Telnet or SSH terminal session.
For DNS, we suggest looking for information about BIND. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|