V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  palytoxin  ›  全部回复第 2 页 / 共 13 页
回复总数  245
1  2  3  4  5  6  7  8  9  10 ... 13  
id -Gn test2 显示什么?
man usermod 有个

-g, --gid GROUP
The group name or number of the user's new initial login group. The group must exist.

Any file from the user's home directory owned by the previous primary group of the user will be owned by
this new group.

The group ownership of files outside of the user's home directory must be fixed manually.

-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
A list of supplementary groups which the user is also a member of. Each group is separated from the next
by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group
given with the -g option.

If the user is currently a member of a group which is not listed, the user will be removed from the
group. This behaviour can be changed via the -a option, which appends the user to the current
supplementary group list.

我自己测试
usermod -g testgroup test2
usermod: no changes

-g 是初始组 -G 是追加组

不过在我这里 追加`usermod -a -G testgroup test2` 还是显示一个 testgroup
id test2
uid=1002(test2) gid=1002(testgroup) groups=1002(testgroup)

这个考虑你的软件环境
查了下,http://linux.vbird.org/linux_basic/0410accountmanager.php#account_group_init,鸟哥这里讲的有效群組(effective group)與初始群組(initial group)应该对应你说的 primary group,supplementary group 。然后 groups 还有根据 /etc/nsswitch.conf 所定义的一些内容,不过根据你的操作,我在本机上试了试,passwd 的群组是不需要在 /etc/group 里体现的
2021-03-27 13:37:25 +08:00
回复了 lizhesystem 创建的主题 全球工单系统 dogedoge.com 又访问不了了?
curl https://www.dogedoge.com/
<!DOCTYPE html><html><head><title>暂停服务 - 多吉搜索</title><meta charSet="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><link href='//fonts.dogedoge.com/css?family=Rubik:300,400,500' rel='stylesheet' type='text/css'><style>html, body { width: 100%; margin: 0; padding: 0; text-align: center; font-family: 'Rubik'; background-repeat: no-repeat; background-position: bottom center; background-size: cover; color: white; height: 100%; background-color: #313335; } h1 {margin-bottom: 0px;font-weight: bold;font-size: 140px;font-weight: 500;padding-top: 130px;margin-bottom: -35px;}h2 {font-size: 45px;color: white; font-weight: 200;}</style></head><body><div id='content'><h1 style='margin-bottom: -35px;'>502</h1><!-- <h2>多吉搜索架构升级中,恢复时间待定 <img src="/static/icons/twemoji/svg/1f48a.svg" height="42" style="margin-bottom: -5px;"></h2> --></div></body></html>⏎
2021-03-07 10:23:09 +08:00
回复了 calmzhu 创建的主题 程序员 有没有现成的汗手键盘去油清洁的方案
手汗多正常,哪有手上疯狂出油的。。。你出了汗用湿纸巾擦擦,油的问题,你饭前便后洗洗手,别在电脑前吃东西
2021-02-16 18:23:32 +08:00
回复了 silkriver 创建的主题 Linux “ Linux 系统应用”系列短视频集
1. 感觉分开三个有些冗长了,第二和第三其实并没有进阶的效果。
2. manjaro 默认在 i3 发行版使用了 i3-gaps,比 i3 添加了一些心得特性。
3. Xorg 目前这个状况估计是很难有大更新了,如果是使用 linux 桌面,加上高分屏的普及,现在其实可以了解下基于 Wayland 的 sway
4. 另外用 i3 这类平铺式的 wm,我更推荐用 alacritty 这类 terminal
2020-03-09 14:42:29 +08:00
回复了 zhshch 创建的主题 Go 编程语言 Go html/template 过滤 script 里的注释?!
你引入的 cdn 有没有被修改掉?
2020-02-16 18:28:12 +08:00
回复了 kasper4649 创建的主题 Go 编程语言 Goland 导入 Gin 报错,求大佬
GOPATH 和 GOROOT 需要配,另外楼上说的 go mod 保平安+1. 先用 vscode 之类写写,ide 不知道乱七八糟的搞了什么
2019-10-10 09:07:52 +08:00
回复了 itskingname 创建的主题 全球工单系统 EasyConnect 不兼容最新的 macOS Catalina
2019-06-02 15:42:50 +08:00
回复了 phpdever 创建的主题 全球工单系统 Visual Studio Code 官网无法下载 MAC 版本,提示 Not Found
楼上真搞笑 沦陷了还能提示 not found
2019-05-11 20:39:11 +08:00
回复了 lueffy 创建的主题 程序员 记录一下第一次接私活的体验
给少了
2019-03-09 23:21:35 +08:00
回复了 Raffaelloo 创建的主题 Linux init 5 切换到 init 3 系统断网怎么回事?
centos 7 默认就是 systemd 了,lz 这个问题估计是 nm 覆盖了某一部分配置。把 nm 放里试试 multi-user.target
加个分母
2018-12-31 12:40:03 +08:00
回复了 Yggdroot 创建的主题 Vim vim 的模糊查找插件 LeaderF 新功能介绍
速度很快,之前 ctrlp 为了速度还装了 fd,不过还是不如 leaderf
2018-09-03 00:50:43 +08:00
回复了 loobert 创建的主题 Android 诺基亚 7 Plus 这款手机怎么样?希望在用的大佬们说说体验
@loobert 我原来也相信。目前来看手机只能说还可以,期望太高可是要失望
2018-09-03 00:38:31 +08:00
回复了 loobert 创建的主题 Android 诺基亚 7 Plus 这款手机怎么样?希望在用的大佬们说说体验
我买的 Nokia7,日常用就是屏幕感觉触摸偶尔很差,打字的时候不如 ip 顺滑,系统干净的一匹,这个强烈推荐,被各种定制 ROM 恶心坏了。电池,我的 7 双卡每天一冲电量比 ip 好很多,因为是 630,不知道 660 如何。王者有点卡,还能打崩坏,还可以了
2018-09-01 18:39:15 +08:00
回复了 palytoxin 创建的主题 全球工单系统 邮储银行 app 在 Nokia 上, Google Play 报有害应用
@RealGM 你 x6 的官方应用市场是不是也卡的要死
2018-09-01 13:37:20 +08:00
回复了 palytoxin 创建的主题 全球工单系统 邮储银行 app 在 Nokia 上, Google Play 报有害应用
楼上的价值观真的很奇怪,很多银行也没有提交到 play 上,也有要求了通讯录权限。
认识相关人的可以帮忙反映一下,顾左右而言他,你们做项目的时候也这样?
2018-09-01 12:31:59 +08:00
回复了 palytoxin 创建的主题 全球工单系统 邮储银行 app 在 Nokia 上, Google Play 报有害应用
@fengleidongxi 邮政的银行,大多是年龄大的在排队
老哥,你给她买个口红买个包,人家给你买个 hhkb。你给人做个网页,指望他给你以后天天做饭么。最多多给你两个么么哒
1  2  3  4  5  6  7  8  9  10 ... 13  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5491 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms · UTC 03:21 · PVG 11:21 · LAX 20:21 · JFK 23:21
Developed with CodeLauncher
♥ Do have faith in what you're doing.