/images/avatar.jpg
杂七杂八的,随手记录。

how to create alias for user in Linux

here:

https://unix.stackexchange.com/questions/758076/how-to-effectively-alias-a-user-on-linux

Users can share their UID, giving them the same user permissions.

Some quick testing reveals that no matter which alias you are logged in as, the system will recognize you as the first user which matches the UID from the passwd database (normally /etc/passwd but can be elsewhere in advanced setups).

I have not seen that groups behave the same way, each alias needs to be added to each group explicitly. It would seem that while users are mapped from UID, the groups look to be mapped from the name (check the contents of /etc/group to get a sense of what I mean).

五月读书笔记

Table of Contents

这个月仍然没有读那些严肃的作品,重读了两本书,新开了两本。

1 欢乐英雄

古龙的经典之作。第一次读的时候是高中时候,几个主角被同学戏称为“几个小痞子”。古龙用其独特的笔锋,描写了“几个小痞子”的生死友谊。其中还不忘顺便调侃一下金庸:

欢乐英雄-古龙

  • 188-189, 标注, 2025 年 5 月 15 日星期四 下午 1:24:06

    “明天,又是另外一天了。”无论什么事,到了明天,总会有办法的,今天晚上若就为明天的事担心,岂非划不来?

  • 315-318, 标注, 2025 年 5 月 15 日星期四 下午 1:30:03

四月阅读总结

从四月底开始,一到周末就忙着看到处看装修、看设计、看家电,没有抽出时间来写四月的总结,一直拖到了今天。

四月份阅读的不太多,由于沉迷暗黑,通勤的时间被用来玩游戏了,最近才又恢复回来。