Quote:
is port 443 can be opened with user permissions?
|
No
Quote:
if no,How should I promote a user to root and demote the user (who has been promoted as root) to user.
|
Most system services (apache being a good example) start as root, bind to the port and then fork off one or more processes running under an unpriveleged account to handle requests.
Quote:
and is it possible to create socket on port 443 with root permissions and read and write to the socket as user.
|
I think so, see above.
I'm a sysadmin not a programmer so I don't know the exact way you'd go about programming this - its something you should've asked in the programming forum.
Another solution would be to simply use iptables to redirect port 2xxx to port 443.