- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Are there any solutions for this mission?
Operating System - HP-UX
1753973
Members
7759
Online
108811
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
04-28-2003 10:37 PM
04-28-2003 10:37 PM
I have a directory mounted as /share and under "/share" there are 3 sub-dirs named "/share/super","/share/limit"and"/share/public".
All users can only access these directories by web.
/share/super will store the original files such as EXCEL/Word files and /share/limit and /share/public will store some read-only files such as PDF files.I want to:
1. Super-users can access(list,get and put) all these directories.
2. Limit-users can access (list and get)/share/limit & /share/public directories.
3. Normal-users can only access(list and get) /share/public directory.
Can anyone tell how to achieve this?
Thanks in advance!
All users can only access these directories by web.
/share/super will store the original files such as EXCEL/Word files and /share/limit and /share/public will store some read-only files such as PDF files.I want to:
1. Super-users can access(list,get and put) all these directories.
2. Limit-users can access (list and get)/share/limit & /share/public directories.
3. Normal-users can only access(list and get) /share/public directory.
Can anyone tell how to achieve this?
Thanks in advance!
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 11:15 PM
04-28-2003 11:15 PM
Solution
Hi,
If you are using Apache as your web server, you can looking into htpasswd.
Below a quote from man:
To generate the password, you can using the following URL:
http://www.xs4all.nl/~remcovz/htpasswd.html
or use: htpasswd [-c] .htpasswd {username}
A .htaccess file must be created in the directory that the user wants to secure. (Multiple directories can have .htaccess files, but there can only be one .htaccess file per directory.)
Basically, these are the steps:
1. While in the directory you want to secure, edit a file called .htaccess using your favorite text editor.
2. The .htaccess file contains 2 sections:
a.The first section of .htaccess must contain 4 lines:
AuthUserFile {path to .htpasswd file}
AuthGroupFile {path to .htgroup file}
AuthName {title for dialog box}
AuthType Basic
b. The second section is a bit trickier. It will contain 3 parts:
{access instruction to be executed}
3. Unix file permissions for the ".htaccess" file must be set so that everyone (ie. owner,group, and other) has read permissions.
hope this helps
Yogeeraj
If you are using Apache as your web server, you can looking into htpasswd.
Below a quote from man:
htpasswd is used to create and update the flat-files used to
store usernames and password for basic authentication of
HTTP users. If htpasswd cannot access a file, such as not
being able to write to the output file or not being able to
read the file in order to update it, it returns an error
status and makes no changes.
Resources available from the httpd Apache web server can be
restricted to just the users listed in the files created by
htpasswd. This program can only manage usernames and pass-
words stored in a flat-file. It can encrypt and display
password information for use in other types of data stores,
though.
htpasswd encrypts passwords using either a version of MD5
modified for Apache, or the system's crypt() routine. Files
managed by htpasswd may contain both types of passwords;
some user records may have MD5-encrypted passwords while
others in the same file may have passwords encrypted with
crypt().
To generate the password, you can using the following URL:
http://www.xs4all.nl/~remcovz/htpasswd.html
or use: htpasswd [-c] .htpasswd {username}
A .htaccess file must be created in the directory that the user wants to secure. (Multiple directories can have .htaccess files, but there can only be one .htaccess file per directory.)
Basically, these are the steps:
1. While in the directory you want to secure, edit a file called .htaccess using your favorite text editor.
2. The .htaccess file contains 2 sections:
a.The first section of .htaccess must contain 4 lines:
AuthUserFile {path to .htpasswd file}
AuthGroupFile {path to .htgroup file}
AuthName {title for dialog box}
AuthType Basic
b. The second section is a bit trickier. It will contain 3 parts:
{access instruction to be executed}
3. Unix file permissions for the ".htaccess" file must be set so that everyone (ie. owner,group, and other) has read permissions.
hope this helps
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP