歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> Linux文化 >> Linux用戶管理問題

Linux用戶管理問題

日期:2017/2/27 12:09:58   编辑:Linux文化

>>> 此貼的回復 >> 1/ [root@miaoquan tmp]# type useradd useradd is /usr/sbin/useradd [root@miaoquan tmp]# rpm -qf /usr/sbin/useradd shadow-utils-4.0.3-41.1

去www.rpmfind.net 下載 上面的shadow-utils包.就可以獲得源代碼.

2/ 既然是w命令的產生的.w命令的源代碼中一定有.

3/ shell命令和內核實現通訊?? shell是C語言實現的.應該是通過系統調用 實現你所說的通訊.

4/ 用戶的結構體? 不知道你是不是說的內核裡的user_struct

struct user_struct { atomic_t __count; /* reference count */ atomic_t processes; /* How many processes does this user have? */ atomic_t files; /* How many open files does this user have? */ atomic_t sigpending; /* How many pending signals does this user have? */ #ifdef CONFIG_INOTIFY atomic_t inotify_watches; /* How many inotify watches does this user have? */ atomic_t inotify_devs; /* How many inotify devs does this user have opened? */ #endif /* protected by mq_lock */ unsigned long mq_bytes; /* How many bytes can be allocated to mqueue? */ unsigned long locked_shm; /* How many pages of mlocked shm ? */

#ifdef CONFIG_KEYS struct key *uid_keyring; /* UID specific keyring */ struct key *session_keyring; /* UID's default session keyring */ #endif

/* Hash table maintenance information */ struct list_head uidhash_list; uid_t uid; };

linux/sched.h


Copyright © Linux教程網 All Rights Reserved