mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #535] 普通用户绑定80的vhost_http_port失败 #417
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#417
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Nov 26, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/535
What version of frp are you using (./frpc -v or ./frps -v)?
0.13.0_linux_amd64
What operating system and processor architecture are you using (
go env)?CentOS 7 (VPS), virtual cpu, 64bit
Configures you used:
The following is the configuration in
frps.ini[common]bind_port = 7000vhost_http_port = 80vhost_https_port = 443......[web_http]type = httpcustom_domains = xxx.example.com[web_https]type = httpscustom_domains = xxx.example.com......Steps to reproduce the issue:
create a new user for FRP
sudo useradd -M -s /usr/sbin/nologin -d /usr/local/frp frpinstall and config
authbind:yum install authbindsudo touch /etc/authbind/byport/{80,443}sudo chown frp.frp /etc/authbind/byport/{80,443}sudo chmod 755 /etc/authbind/byport/{80,443}run FRP by the user
frpin serversudo -u frp authbind --deep /path/to/frps -c /path/to/frps.ini &Describe the results you received:
Unable to bind to 80, permission denied
Describe the results you expected:
Binding to 80 by the general user
frpsuccessfullyAdditional information you deem important (e.g. issue happens only occasionally):
No apache, nginx or other program is listening on 80 or 443.
Can you point out what caused this issue (optional)
No
@ghost commented on GitHub (Nov 26, 2017):
用中文回答就行了
@fatedier commented on GitHub (Dec 7, 2017):
普通用户不能绑定 80 端口是系统层面的问题,和 frp 无关。你可以选择绑定其他端口,或者使用 root 用户绑定 80 端口。