1. How to add a user and login with new user in Solaris?
#bash
#groupadd users
#useradd -d /export/home/robert -m -g users robert
Keep in root user
#passwd robert
#chown -R robert:users /export/home/robert
Notes, you must change the ower of the home directory. Otherwise you can't login JDS correctly with this user.
You can add the user with smc, the command is /usr/sadm/bin/smc &
Please also refer to http://publish.it168.com/2007/0510/20070510002004.shtml
2. How to set the environment variants for a user?
1) (In process level) Add the scripts of export into the start shell script.
2) (In user level) Add the scripts of export into the .profile in user home directory.
3) (In global level) Add the scripts of export into the /etc/profiie.
Note, please note that you must add the scripts of export into the specific file directory. Don't encapsulate them in a shell, and invoke the shell in profile. Because environment works inside its process or its child processes.
3. References,
http://bbs.chinaunix.net/archiver/?tid-1034081.html
http://topic.csdn.net/t/20061120/10/5170346.html
http://blog.csdn.net/hotsolaris/archive/2008/05/14/2443685.aspx
分享到:
相关推荐
Add a language definition to your wordfile for use with UltraEdit and UEStudio's powerful syntax highlighting Syntax highlighting and code folding Explanation of highlighting and folding definitions ...
The book will show the user how to integrate all of these libraries and APIs with their applications. Approach This book follows a recipe-based approach that will heavily focus on the code and how to...
environments, and how to get started testing a green-field application. As the reader grows more comfortable, they will be exposed to more advanced TDD topics such as abstracting away third-party code...
You’ll explore features such as custom user controls that you can reuse throughout your projects and the media element that allows you to easily add sound and video to your applications. Silverlight...
- **Introduction to the Shell**: Explanation of the role of the shell in Unix-like systems and how it serves as the primary interface for interacting with the system. - **Common Shell Commands**: List...
The user should be able to use and control the tablet in as natural and easy a manner as possible. The user's preferences should take precedence over application requests, where possible. Here are ...
With Flash Lite for the Digital Home, developers can create applications that can stream and play high-definition video content directly from the Internet, enabling richer and more interactive user ...
**Python**, as a scripting language, has become the go-to choice for many GIS professionals due to its simplicity, flexibility, and extensive library support, especially through ArcGIS. ##### ...
Understanding how to use these components effectively is crucial for creating visually appealing and functional user interfaces. Attributes control various aspects of a component, such as its ...
Output buffering is a mechanism for controlling how much output data ; (excluding headers and cookies) PHP should keep internally before pushing that ; data to the client. If your application's ...
different stream environments and methodological constraints to using LiDAR for this purpose. 4 5 CHAPTER II BACKGROlJND Water Surface Slope Water surface slope is a significant component to many ...
- **Native Applications:** With Kotlin/Native, developers can write native applications for platforms like iOS and desktop environments (Windows, macOS, Linux). - **JavaScript Applications:** Kotlin/...
PEP 451: A ModuleSpec Type for the Import System Other Language Changes New Modules asyncio ensurepip enum pathlib selectors statistics tracemalloc Improved Modules abc aifc argparse ...
- Log out and log back in for the changes to take effect. 5. **Testing KVM:** - You can create a basic virtual machine using the `virt-install` command: ```bash sudo virt-install --name=myvm --...
/* The memory we search for has to include the memory * control block, but the users of malloc don't need * to know this, so we'll just add it in for them. */ numbytes = numbytes + sizeof...