This is a discussion on create command aliases for a user within the Solaris/OpenSolaris forums, part of the UNIX operating systems category; Hi all, I am using Solaris 10 OS on X86. When I add a new user from command Code: useradd ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Hi all,
I am using Solaris 10 OS on X86. When I add a new user from command Code:
useradd -d /export/home/vikas -m -s /bin/bash vikas Which file I have to change to make command aliases and what is the format ? for e.g. making alias of ls as ls -lrt. Like in Linux, we have to change .bash_profile as Code:
ls='ls -lrt'; export ls I tried this on local.profile and .profile but it wasnt working. Also, suppose I need that each time a user logs in a script say /tmp/vikas.sh executes. How to achieve this ? Pls help ! Thanks and Regards, Vikas |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to create multiple user account? | droidwork | Shell scripting | 11 | 02-23-2008 01:35 PM |
| Unable to create user | vaibhav.kanchan | Getting started tutorials | 3 | 12-07-2007 10:46 AM |
| how to create super user | click007 | Getting started tutorials | 12 | 08-28-2007 08:14 PM |
| How can i create script for deleting user? | Paul | Shell scripting | 1 | 08-02-2007 10:20 PM |
| Create new user account in Ubuntu Linux from command line | sweta | Getting started tutorials | 0 | 06-21-2007 01:49 AM |