V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  milestonev6  ›  全部回复第 1 页 / 共 1 页
回复总数  7
2019-04-24 11:44:37 +08:00
回复了 milestonev6 创建的主题 NGINX 关于 nginx 监听端口的问题
@AstroProfundis 感谢回复,加了这条配置还是不行,只能访问到 welcome nginx 页面
2019-04-24 11:20:37 +08:00
回复了 milestonev6 创建的主题 NGINX 关于 nginx 监听端口的问题
@dier 感谢回复, 当 nginx_ip 端口跟代理服务器 IP 端口一致时不能访问,不一致的时候可以。
2019-01-24 10:35:21 +08:00
回复了 milestonev6 创建的主题 问与答 Samba 里面的 admin users 参数有什么用?
@yulgang 唔,我看了下,你这个应该没有设置到管理员用户吧?也就是"admin users"这个参数,你只是允许 admin 这个用户访问 share。
2019-01-24 08:25:18 +08:00
回复了 milestonev6 创建的主题 问与答 Samba 里面的 admin users 参数有什么用?
@hoyixi 上条看错,添加了 pdbedit -L 是有这个用户的。
2019-01-24 08:23:38 +08:00
回复了 milestonev6 创建的主题 问与答 Samba 里面的 admin users 参数有什么用?
@yulgang 我的理解是,管理员应该是不受” valid users “ 、“ read only ”这类参数限制的,你试下把 valid users 这条参数去掉 admin 就没权限了。
2019-01-24 08:15:09 +08:00
回复了 milestonev6 创建的主题 问与答 Samba 里面的 admin users 参数有什么用?
@hoyixi 添加了呀,没有这个用户的话 pdbedit 是会报错吧?
2019-01-23 16:41:15 +08:00
回复了 milestonev6 创建的主题 问与答 Samba 里面的 admin users 参数有什么用?
@Humorce 感谢你的回答,如文档所说:

admin users
This option specifies a list of users that perform file operations as if they were root. This means that they can modify or destroy any other user's files, regardless of the permissions. Any files that they create will have root ownership and will use the default group of the admin user. The admin users option allows PC users to act as administrators for particular shares. Be very careful when using this option, and make sure good password and other security policies are in place.

At the other end of the spectrum, you can explicitly specify users who will be allowed superuser (root) access to a share with the admin users option. An example follows:

[sales]
path = /home/sales
comment = Sedona Real Estate Sales Data
writable = yes
valid users = sofie shelby adilia
admin users = mike

但是经过测试:

[folder]
path = /home/sales
writable = yes
valid users = user1
admin users = admin

以上配置只有 user1 能够进入,admin 死活进不去 - -。

有一直在使用 samba 的大神吗,Help~
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5278 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 07:48 · PVG 15:48 · LAX 00:48 · JFK 03:48
Developed with CodeLauncher
♥ Do have faith in what you're doing.