Sponsored Content
Top Forums UNIX for Advanced & Expert Users which access right should set in my webpage index.html ? Post 89435 by zp523444 on Sunday 13th of November 2005 12:35:42 AM
Old 11-13-2005
which access right should set in my webpage index.html ?

I have a webpage, http://my.dns.com/~zp523/index.html,
I want all people to have read and execute privileges. I want to extend it with execute privilege. Which command should be used in chmod?

is it only give read(r) & execute(x) parameter in 'chmod ??? index.html'

thk a lot!!
 

10 More Discussions You Might Find Interesting

1. Web Development

New SEO Experiment http://www.globalfactbook.com/index.html

Hi, I found out the CIA's worldfact book is has an open copyright, anyone can use it as long as we don't use the CIA shield. So, I set up an experimental SEO site to see what will happen in the search engines over time: The Global Factbook Please click above and let's see if we can... (1 Reply)
Discussion started by: Neo
1 Replies

2. Shell Programming and Scripting

Run shell commands via HTML webpage/button?

Hey guys, I got a issue here... we have a development box and a UAT box that our webmasters use, they do the webpage development on the development box and and save changed files to a particular directory on the dev machine. At a certain time of the day a cronjob kicks off and the... (3 Replies)
Discussion started by: zeekblack
3 Replies

3. Shell Programming and Scripting

Linux Script create index.html file

I need a script that can do this: A script that searches all directories and subdirectories for .html files When a .html file is found it creates a index.html file in that folder. It then edits the index.html file and inserts links to all of the .html files that are in that folder into the... (5 Replies)
Discussion started by: seashell11
5 Replies

4. Shell Programming and Scripting

Extract urls from index.html downloaded using wget

Hi, I need to basically get a list of all the tarballs located at uri I am currently doing a wget on urito get the index.html page Now this index page contains the list of uris that I want to use in my bash script. can someone please guide me ,. I am new to Linux and shell scripting. ... (5 Replies)
Discussion started by: mnanavati
5 Replies

5. UNIX for Dummies Questions & Answers

Access Webpage in UNIX

Dear All, I do not know anything from UNIX and its systems. I have a course on bioinformatics and they taught us a little about the UNIX. They also provided a userID and password for the web server which I can access using SSH. now, with A LOT OF EFFORT, I wrote a small index.html file, saved it... (1 Reply)
Discussion started by: dreamer0085
1 Replies

6. Infrastructure Monitoring

Access Nagios webpage on 2 interfaces.

Dear All, I have Nagios running on a PC which has two ethernet cards, eth0 and eth1. Each interface is on a different network, like eth0 is on n/w 10.111.X.X and eth1 is on n/w 100.1.X.X (recently configured). The Nagios webpage is accessed remotely by typing 10.111.X.X/nagios3/ i.e. via the... (0 Replies)
Discussion started by: salim100569
0 Replies

7. Web Development

Get command-output to webpage from solaris-10-OS invoked from html webpages

Hello, I am a middleware administrator and as an admin I need to monitor a number of middleware instances (weblogic servers). But since it is a not the forum for that i would like to put my problem in simple terms and need guidance on that. I need to use apache webserver on Solaris 10 zones to... (3 Replies)
Discussion started by: poga
3 Replies

8. UNIX for Dummies Questions & Answers

Trying to execute a script to populate all directories with index.html

Hello, I am trying to create a php file that would copy given index.html file to all directories (and subdirectories) on my site that don't have one. This is to prevent directory listings on nginx. This index.html file is placed in the /populate directory and looks like this: <html> <head>... (7 Replies)
Discussion started by: teletubby
7 Replies

9. Shell Programming and Scripting

Attach multiple index.html file using mutt

Hi I want to attach multiple index.html, index_v2 file using mutt command basically i want first index.html and then index_v2.html file as a body in email , these html files are test reports I am using following command , but it is over writing , any help appreceated ;) mutt -e... (2 Replies)
Discussion started by: madankumar.t@hp
2 Replies

10. Shell Programming and Scripting

Running php index.php as shell in webpage

so i have a bit of a unique situation. i have an encrypted index.php file that that can't be run the normal way that a web browser would run it. if it is run the normal way, the php script will show only gibberish on the web browser, instead of the actual php code. when run from the command... (8 Replies)
Discussion started by: SkySmart
8 Replies
priv_str_to_set(3)					     Library Functions Manual						priv_str_to_set(3)

NAME
priv_str_to_set(), priv_set_to_str() - privilege name to set conversion function SYNOPSIS
Parameters priv_list The list of privilege names, passed as a string, separated by one or more characters from delimiter. It may also contain the compound privileges (basic, basicroot, and policy). delimiter Separates the privileges in priv_list. index_ptr If an error occurs while parsing the list of privilege names, the pointer pointed to by index_ptr is set to point to the remainder of the string after the error occurred, so long as index_ptr is not a NULL pointer. delimiter Separates the individual privilege names by any of the specified characters. If delimiter is a NULL character, the default delimiter of comma is used. flag Bit mask with the following bit positions defined: Exactly one of the two flags must be passed. When flag is the resulting string uses the compound privileges and to arrive at a short representation. priv_vec Specifies privilege set. DESCRIPTION
priv_str_to_set Conversion converts a list of privilege names to a privilege set. priv_list is a string consisting of privilege names and/or compound privileges. The individual elements in the string are separated by one or more characters of delimiter . Any privilege in the list priv_list can be optionally preceded by an exclamation mark to be interpreted as removal. For example, means all privileges in the compound privilege except the privilege. The string is case-insensitive. prefix is optional to a privilege name. For example, and all have the same meaning. priv_list is interpreted left to right, so the string is the same as an empty list of privileges, while is the same as For a list of valid privileges (both individual privileges and compound privileges), see privileges(5). priv_set_to_str Conversion converts a privilege set to a string of privilege names separated by the character specified by delimiter . RETURN VALUE
and return the following values: pointer Successful completions. Returns a non-null pointer. The caller of is responsible for freeing the result using the The caller of is responsible for freeing the result using the NULL pointer Function failed. Returns a null pointer and sets to indicate the error . ERRORS
If any of the following conditions occur, the functions fail and set Cannot allocate enough memory for the given data. One or more arguments are invalid. EXAMPLES
#include <stdio.h> #include <sys/types.h> #include <sys/privileges.h> #define priv_list "PRIV_CHOWN,PRIV_CHROOT,PRIV_DACREAD" main() { char *index; priv_set_t * priv_vector; if ( (priv_vector = priv_str_to_set( priv_list, NULL, &index)) == NULL ) { perror("priv_str_to_set Failed"); if (index) printf("Invalid privilege name starting at %s ", index); exit(1); } printf("The privileges in the given privilege vector are %s ", priv_set_to_str( priv_vector, NULL, PRIV_STR_SHORT) ); } DEPENDENCIES
and are both part of the library. SEE ALSO
privset_free(3), privileges(5). priv_str_to_set(3)
All times are GMT -4. The time now is 04:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy