- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to restrict a user ID access to only 8am t...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- Report Inappropriate Content
тАО07-31-2008 03:27 PM
тАО07-31-2008 03:27 PM
#############################
Hello All,
Question :
I need to restrict a "user id" to a certain logical colume & only have access from 8am to 5pm M-F.
Is this passible ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2008 04:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2008 04:57 PM
тАО07-31-2008 04:57 PM
Re: How to restrict a user ID access to only 8am to 5pm
Method 1:
Go to SAM->Accounts for Users and Groups -> Users
select the user u wish to restrict
select action->Set Authorized Login Times...
and select the login time for that user.
In your query it is 8am to 5pm Monday-Friday
Method 2:
Using command line:
/usr/lbin/modprpw -m timeod=Wk0800-1700 username
Cheers!!
Deepak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2008 08:02 PM
тАО07-31-2008 08:02 PM
Re: How to restrict a user ID access to only 8am to 5pm
What's this? (Assuming it is column?)
>Deepak: Go to SAM->Accounts for Users and Groups -> Users
/usr/lbin/modprpw
Both of these requires a trusted system.
>Oviwan: insert this to the .profile of the user:
This would probably have to be added to /etc/profile if the user can modify his .profile.
>if date >= 8am and date<=5pm
then logout
hour=$(date +%H)
day=$(date +%u) # Mon == 1
if (( hour < 8 || hour >= 17 || day > 5 )); then
exit
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2008 07:42 AM
тАО08-01-2008 07:42 AM
Re: How to restrict a user ID access to only 8am to 5pm
not "logical colume"
it's "logical volume"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2008 09:25 AM
тАО08-01-2008 09:25 AM
Re: How to restrict a user ID access to only 8am to 5pm
What did you have in mind about restricting to a given logical volume? Where his files are placed?
I'm not sure even ACLs will help here??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2008 03:50 PM
тАО08-01-2008 03:50 PM
Re: How to restrict a user ID access to only 8am to 5pm
To restrict users to file system level then ACL implementation is better idea.
e.g.
setacl -m user:user_name:permissions(rwx) Path