Unable to log ... only as root

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
mr.pig
-


Joined: 06 Oct 2005
Posts: 3

PostPosted: Thu Oct 06, 2005 9:37 pm    Post subject: Unable to log ... only as root Reply with quote

Can I somehow install your software as root user ?
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Oct 07, 2005 2:05 pm    Post subject: Re: Unable to log ... only as root Reply with quote

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 View user's profile Send private message Send e-mail
mr.pig
-


Joined: 06 Oct 2005
Posts: 3

PostPosted: Fri Oct 07, 2005 4:12 pm    Post subject: Reply with quote

But I said I cannot log as non-root user ......
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Oct 08, 2005 1:55 pm    Post subject: Reply with quote

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:
Code:
./abyssws -r

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
mr.pig
-


Joined: 06 Oct 2005
Posts: 3

PostPosted: Sun Oct 09, 2005 10:13 am    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Oct 09, 2005 2:41 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group