ऑनवर्क्स लिनक्स और विंडोज ऑनलाइन वर्कस्टेशन

प्रतीक चिन्ह

वर्कस्टेशन के लिए मुफ्त होस्टिंग ऑनलाइन

<पिछला | विषय-सूची | अगला>

4.3. Adding the LFS User‌

When logged in as user जड़, making a single mistake can damage or destroy a system. Therefore, we recommend building the packages in this chapter as an unprivileged user. You could use your own user name, but to make it easier to set up a clean working environment, create a new user called एलएफएस as a member of a new group (also named एलएफएस) and use this user during the installation process. As जड़, issue the following commands to add the new user:


groupadd lfs

useradd -s /bin/bash -g lfs -m -k /dev/null lfs

groupadd lfs

useradd -s /bin/bash -g lfs -m -k /dev/null lfs


The meaning of the command line options:


-s /bin/bash

इस बनाता है खूब जोर से पीटना the default shell for user एलएफएस.


-g lfs

This option adds user एलएफएस समूह के लिए एलएफएस.

-m

This creates a home directory for एलएफएस.

-k /dev/null

This parameter prevents possible copying of files from a skeleton directory (default is / Etc / skel) by changing the input location to the special null device.

एलएफएस

This is the actual name for the created group and user.

To log in as एलएफएस (as opposed to switching to user एलएफएस when logged in as जड़, which does not require the एलएफएस user to have a password), give एलएफएस a password:


passwd lfs

passwd lfs


अनुदान एलएफएस पूर्ण पहुँच $LFS/टूल्स बना कर एलएफएस the directory owner:


chown -v lfs $LFS/tools

chown -v lfs $LFS/tools


If a separate working directory was created as suggested, give user एलएफएस ownership of this directory:


chown -v lfs $LFS/sources

chown -v lfs $LFS/sources


Next, login as user एलएफएस. This can be done via a virtual console, through a display manager, or with the following substitute user command:


सु - एलएफएस

सु - एलएफएस


"-” instructs su to start a login shell as opposed to a non-login shell. The difference between these two types of shells can be found in detail in bash(1) और जानकारी बैश.


OnWorks पर शीर्ष OS क्लाउड कंप्यूटिंग: