Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Permissions of the folder var/www Post 302455485 by fpmurphy on Tuesday 21st of September 2010 08:01:35 PM
Old 09-21-2010
An alternative, but more fine-grained, approach would be to use access control lists (ACLs) to control write access to /var/www to specific users.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

file permissions on www

I recently purchased an account at a web host provider. When I logged into my file system for the first time to check the file permissions, I noticed that the file permissions on the www folder where like this: drwxr-x--- The index.html file was in the www folder as expected. If I have... (4 Replies)
Discussion started by: vic20
4 Replies

2. UNIX for Dummies Questions & Answers

Logic behind display of .www folder ??

Hi frns, I have a weird quest. I want to know the logic behind the display/rendering of the directory structure when there is no "index.htm" in the .www directory of the user. The requirement of this knowledge rooted from another requirement. Let me brief it.. I want to place a "index.htm" in... (10 Replies)
Discussion started by: srinivasan_85
10 Replies

3. UNIX for Dummies Questions & Answers

Change permissions of /var/log/messages

I have recently configured BigBrother to monitor the linux servers in our environment. The only problem is that it is unable to read the /var/log/messages file in the servers. Due to some restrictions I can't make the bb user a member of the highly priviledged groups. The current permissions on the... (3 Replies)
Discussion started by: anindra
3 Replies

4. UNIX for Advanced & Expert Users

resize /var/www (debian)

I have several live websites running in the /var/www/XXXX directory. Initially when I did the Debian install I limited the web directory to 6GB. I am now outgrowing that limit. Question is: Is there a simple way to add space to the web directory??? I'd hate to have to redo the whole... (3 Replies)
Discussion started by: seagonus
3 Replies

5. Web Development

var/www/html permissions

Hi, first post. I have no Linux experience. I have an e-friend that set me up a VPS and my website with Apache and FTP access so I could upload my files the way I do it regularly with my shared hosting. The OS in the VPS is Fedora by the way. Now the thing is: http ://www.mydomain.com presents... (0 Replies)
Discussion started by: JPA
0 Replies

6. UNIX for Advanced & Expert Users

chroot openssh access www folder

here is the setup<br/> sshd_config: <pre> Match User sftp ChrootDirectory /chroot/sftp </pre> I connect just fine to the folder <pre>/chroot/sftp</pre> However I cannot access the website developer folder due to it being outside the scope of the defined chrootdirectory... (2 Replies)
Discussion started by: dunpealslyr
2 Replies

7. Homework & Coursework Questions

help with /var folder

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Im trying to make a script which will · Use the /var/www/logs/access_log file to process the last 300... (6 Replies)
Discussion started by: bugenhagen_
6 Replies

8. UNIX for Dummies Questions & Answers

How to protect directory var/www in debian?

hi i need somme help to protect directory in debian with user and pass var/www thank's (6 Replies)
Discussion started by: azzeddine2005
6 Replies

9. Debian

Help request. FTP user to var/www/html

Hi all. I appologise this is my first post, I will gladly have a further look around to see if this has been posted elsewhere, but so far it has not, or it doesnt quite explain in full what I need. If anyone here can help me out, I would really appreciate this. I want to make sure I do this... (1 Reply)
Discussion started by: Pinkfloyd
1 Replies

10. Web Development

$_SERVER['DOCUMENT_ROOT'] directs to /var/www not ~/public_html

Hi all, Exactly like my title says. I am learning PHP and MySQL and I used to use /var/www/ to host (contain or store) my files (.htm/.php) for testing. I could configure, finally, apache2 to use ~/public_html instead. Now I when I tried to use $_SERVER it still directs (I used echo to show... (7 Replies)
Discussion started by: faizlo
7 Replies
ACL(3)							   BSD Library Functions Manual 						    ACL(3)

NAME
acl -- introduction to the POSIX.1e ACL security API LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sys/types.h> #include <sys/acl.h> DESCRIPTION
The system permits file systems to export Access Control Lists via the VFS, and provides a library for userland access to and manipulation of these ACLs. Not all file systems provide support for ACLs, and some may require that ACL support be explicitly enabled by the administrator. The library calls include routines to allocate, duplicate, retrieve, set, and validate ACLs associated with file objects. This implementation of the POSIX.1e library differs from the standard in a number of non-portable ways in order to support the MacOS/Darwin ACL semantic. Where possible, these differences are implemented using the mechanisms provided in the standard for such extensions. Where routines are non-standard, they are suffixed with _np to indicate that they are not portable. POSIX.1e describes a set of ACL manipulation routines to manage the contents of ACLs, as well as their relationships with files; almost all of these support routines are implemented. Available functions, sorted by behavior, include: acl_add_perm() This function is described in acl_add_perm(3), and may be used to add permissions to a permission set. acl_clear_perms() This function is described in acl_clear_perms(3), and may be used to clear all permissions from a permission set. acl_copy_entry() This function is described in acl_copy_entry(3), and may be used to copy the contents of an ACL entry. acl_create_entry() This function is described in acl_create_entry(3), and may be used to create an empty entry in an ACL. acl_delete_entry() This function is described in acl_delete_entry(3), and may be used to delete an entry from an ACL. acl_delete_perm() This function is described in acl_delete_perm(3), and may be used to delete permissions from a permset. acl_dup() This function is described in acl_dup(3), and may be used to duplicate an ACL structure. acl_free() This function is described in acl_free(3), and may be used to free userland working ACL storage. acl_from_text() This function is described in acl_from_text(3), and may be used to convert a text-form ACL into working ACL state, if the ACL has POSIX.1e semantics. acl_get_entry() This function is described in acl_get_entry(3), and may be used to retrieve a designated ACL entry from an ACL. acl_get_fd(), acl_get_fd_np(), acl_get_file(), acl_get_link_np() These functions are described in acl_get(3), and may be used to retrieve ACLs from file system objects. acl_get_permset() This function is described in acl_get_permset(3), and may be used to retrieve a permset from an ACL entry. acl_get_qualifier() This function is described in acl_get_qualifier(3), and may be used to retrieve the qualifier from an ACL entry. acl_get_tag_type() This function is described in acl_get_tag_type(3), and may be used to retrieve the tag type from an ACL entry. acl_init() This function is described in acl_init(3), and may be used to allocate a fresh (empty) ACL structure. acl_set_fd(), acl_set_fd_np(), acl_set_file(), acl_set_link_np() These functions are described in acl_set(3), and may be used to assign an ACL to a file system object. acl_set_permset() This function is described in acl_set_permset(3), and may be used to set the permissions of an ACL entry from a permset. acl_set_qualifier() This function is described in acl_set_qualifier(3), and may be used to set the qualifier of an ACL. acl_set_tag_type() This function is described in acl_set_tag_type(3), and may be used to set the tag type of an ACL. acl_to_text() This function is described in acl_to_text(3), and may be used to generate a text-form of a POSIX.1e semantics ACL. acl_valid(), acl_valid_fd_np(), acl_valid_file_np(), acl_valid_link_np() These functions are described in acl_valid(3), and may be used to validate an ACL as correct POSIX.1e-semantics, or as appropriate for a particular file system object regardless of semantics. The syscalls between the internal interfaces and the public library routines may change over time, and as such are not documented. They are not intended to be called directly without going through the library. SEE ALSO
ls(1), chmod(1), acl_add_perm(3), acl_clear_perms(3), acl_copy_entry(3), acl_create_entry(3), acl_delete_entry(3), acl_delete_perm(3), acl_dup(3), acl_free(3), acl_from_text(3), acl_get(3), acl_get_permset(3), acl_get_qualifier(3), acl_get_tag_type(3), acl_init(3), acl_set(3), acl_set_permset(3), acl_set_qualifier(3), acl_set_tag_type(3), acl_to_text(3), acl_valid(3), posix1e(3) UNSUPPORTED FUNCTIONS
acl_calc_mask(3), acl_delete_def_file() STANDARDS
POSIX.1e assigns security labels to all objects, extending the security functionality described in POSIX.1. These additional labels provide fine-grained discretionary access control, fine-grained capabilities, and labels necessary for mandatory access control. POSIX.2c describes a set of userland utilities for manipulating these labels. POSIX.1e is described in IEEE POSIX.1e draft 17. HISTORY
This manpage is closely derived from the FreeBSD manpage by Robert N M Watson AUTHORS
Michael Smith Robert N M Watson BSD
December 18, 2002 BSD
All times are GMT -4. The time now is 07:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy