- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Some questions on user management, urgent!
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-05-2006 11:06 AM
03-05-2006 11:06 AM
Hi Guys,
I need exact answers on some of the basic questions, its very urgent
Q.1 Give an example of how to define an alias. Include infomation of where the alias is defined and an example defination?
Q.2. What does the command 'set -o vi' do? I know it recalls the previous commands? but any specific answer for this one?
Q.3. What keys are used by a user to access his shell history in...
a, The korn shell using vi?
b, The Bash shell?
Q.4. When a user logs in and enters his password the system...
a. Un-encrypts his password in the password file and compares it with the password the user has entered OR
b. Encrypts the password the user has entered and compares it with the encrypted one in the password file.
What is the answer for the above a or b?
Thanks,
Raf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-05-2006 11:21 AM
03-05-2006 11:21 AM
Re: Some questions on user management, urgent!
Few more questions guys and that's all..
Q.1 rwxrwxr-x 1 6170 staff 48127 Jun 06 2003 nc
a, what is the umask required to create a file with the same permission?
b, if I'm not the member of staff group can I delete this file?
Q.2. If a user is configured to use korn shell (ksh) where does this user get their environment?
a. ~/.profile
b. ~/.kshrc
c. ~/.bashrc
d. /etc/profile
e. /etc/environment
f. Combination of a,b,d,e
g. Combination of b,c,d
h. All of a,b,c,d,e
i. None of Above
Answer (a,b,c,d,e,f,g,h,i) :
I think answer is f but what do u recon?
Q. Can you create users whose security levels are based on their roles - ie role based asscess?
a. Yes
b. No
c. Only if appropriate software is installed.
What is the answer a,b or c?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-05-2006 11:35 AM
03-05-2006 11:35 AM
SolutionI alwasy use vim instead of vi so I will define the following alias in .cshrc file in my home directory for tcsh or .bashrc if I am using Bash
alias vi=/usr/loca/bin/vim
To Q2
This will set the command line editing style to vi, so you can use vi commands to do command editing.
To Q3
Just like Q2, if you set command line editing style to vi for ksh then you can use vi commands like / to searck and "j" "k" to move between previously issued commands
To Q4
My understanding is that the system will generate some kind of hash from the password you entered and then compare this to /etc/passwd file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-05-2006 11:43 AM
03-05-2006 11:43 AM
Re: Some questions on user management, urgent!
Q.1 rwxrwxr-x 1 6170 staff 48127 Jun 06 2003 nc
a, what is the umask required to create a file with the same permission?
I think the umask should be set to 002 to remove the write permission from others.
b, if I'm not the member of staff group can I delete this file?
you should not be able to remove this file if you are not a member of staff group and you do not own this file.
Q.2. If a user is configured to use korn shell (ksh) where does this user get their environment?
a. ~/.profile
b. ~/.kshrc
c. ~/.bashrc
d. /etc/profile
e. /etc/environment
f. Combination of a,b,d,e
g. Combination of b,c,d
h. All of a,b,c,d,e
i. None of Above
Answer (a,b,c,d,e,f,g,h,i) :
I think answer is f but what do u recon?
have a look here
http://www.linuxlots.com/~dunne//getting_the_most_from_your_shell.html
Q. Can you create users whose security levels are based on their roles - ie role based asscess?
a. Yes
b. No
c. Only if appropriate software is installed.
What is the answer a,b or c?
Not quite sure about his one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-05-2006 12:09 PM
03-05-2006 12:09 PM
Re: Some questions on user management, urgent!
Thank you so much for your help, I'm still working on some of these questions as it is urgent..talk to you soon, or please tell me if you come up with any answers for the questions you are not sure???
Thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-05-2006 03:14 PM
03-05-2006 03:14 PM
Re: Some questions on user management, urgent!
Here are my answers,
Q.1 Give an example of how to define an alias. Include infomation of where the alias is defined and an example defination?
### In POSIX shell, just type # alias
#alias my_alias='date'
#my_alias
Sun Mar 5 22:57:39 EST 2006
To remove an alias,
#unalias my_alias
#my_alias
sh: my_alias: not found.
Q.2. What does the command 'set -o vi' do? I know it recalls the previous commands? but any specific answer for this one?
### It is used for command line editing.
http://www.kingcomputerservices.com/unix_101/using_history_and_command_line_editing.htm
Q.3. What keys are used by a user to access his shell history in...
a, The korn shell using vi?
###
b, The Bash shell?
UP, Down arrow keys.
Q.4. When a user logs in and enters his password the system...
a. Un-encrypts his password in the password file and compares it with the password the user has entered OR
b. Encrypts the password the user has entered and compares it with the encrypted one in the password file.
What is the answer for the above a or b?
(B)
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-05-2006 03:29 PM
03-05-2006 03:29 PM
Re: Some questions on user management, urgent!
Thanks Arun and Njia for your help, I have got what I wanted so I probably close this thread later on today or tommorow.
Have a great day guys I'm now assigning points..
Cheers
Raf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-05-2006 03:40 PM
03-05-2006 03:40 PM
Re: Some questions on user management, urgent!
Hi Arun,
I appreciate Arun and Njia, that you guys always respond quickly, Below is my email please send me an email so I can add you guys in my friends list....send me an email Arun and I will reply to that..we have an excellent team here
farhanbiz@hotmail.com
Cheers
Raf
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP