07-02-2001
Well, This is not the exact answer to your question.
But may help you....
Remember 3 numbers.
Read 4
Write 2
Execute 1
in chmod command you can give the access rights to 3 kind of users.
owner , users in the same group and otheres
if you say
chmod 765 filename
it means
owner of the file gets 7 (4+2+1 , ie, read, write, execute)
group people get 6 (4+2 , ie read and write)
others get 5 (4+1 ie. read and execute but not write)
to give any access permission add up the number for that access permission.
Pls correct me if I am wrong.
8 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
I have created a small FAQ for the "Unix for Dummies" forum.
Hopefully this will be useful, as there are questions which are asked (and answered) repeatedly.
<A HREF="http://www.droflet.net/unix_dot_com_faq.html">http://www.droflet.net/unix_dot_com_faq.html (0 Replies)
Discussion started by: PxT
0 Replies
2. Shell Programming and Scripting
Hi all.
iam new to this and i want to learn perl
Any good website out there ??
anything will do
thanks
:( (1 Reply)
Discussion started by: perleo
1 Replies
3. News, Links, Events and Announcements
A goofy UNIX test:
http://www.majon.com/cgi-bin/IQ?Q=unix
WARNING: ANSWERS ARE BELOW!!!!
IF YOU WANT TO DO THE TEST BEFORE SEEING THE ANSWERS, DON"T READ FURTHER ;) (13 Replies)
Discussion started by: Neo
13 Replies
4. Solaris
Is there one command that will display all system information on a Solaris host running Solaris 8? System information such as model, memory, CPU, disk space etc. etc. (2 Replies)
Discussion started by: mita
2 Replies
5. UNIX for Dummies Questions & Answers
I want to know data about
1. Overview
2. Process Management
3. Memory Management
4. File System Management
5. Secondary Storage Management
6. Protection and Security Systems
of UNIX OS
Thank Alot. (1 Reply)
Discussion started by: coolmara04
1 Replies
6. UNIX for Dummies Questions & Answers
Please help to answer some highlighted question below.
1. How to create more than 1 partition in a single hard disk?
2. How to format the created partition to be viewable like in windows C: or D: ?
3. How to use pen drive in unix environment?
4. How to find a file starting with... (8 Replies)
Discussion started by: jimmyysk
8 Replies
7. UNIX for Dummies Questions & Answers
Hello:
I am a very new Newbie. This is not a homework question.
The assignment question was actually on the use of the 2 different inputs 'read' and 'cat' ... that I know and turned in an hour ago. I don't need help with that. My question, like I said, probably sounds really dumb to most of... (4 Replies)
Discussion started by: ZaraJC
4 Replies
8. Programming
Hi.
I wrote a small programm which shows me display's refresh rate
#include "stdafx.h"
#include "windows.h"
#include "iostream"
using namespace std;
int _tmain(int cout)
{
HDC hDCScreen = GetDC(NULL);
int RefreshFrequency = GetDeviceCaps(hDCScreen, VREFRESH);
ReleaseDC(NULL, hDCScreen);... (1 Reply)
Discussion started by: urello
1 Replies
LEARN ABOUT CENTOS
service
service(8) System Manager's Manual service(8)
NAME
service - run a System V init script
SYNOPSIS
service SCRIPT COMMAND [OPTIONS]
service --status-all
service --help | -h | --version
DESCRIPTION
service runs a System V init script in as predictable environment as possible, removing most environment variables and with current working
directory set to /.
The SCRIPT parameter specifies a System V init script, located in /etc/init.d/SCRIPT. The supported values of COMMAND depend on the
invoked script, service passes COMMAND and OPTIONS it to the init script unmodified. All scripts should support at least the start and
stop commands. As a special case, if COMMAND is --full-restart, the script is run twice, first with the stop command, then with the start
command.
service --status-all runs all init scripts, in alphabetical order, with the status command.
If the init script file does not exist, the script tries to use legacy actions. If there is no suitable legacy action found and COMMAND is
one of actions specified in LSB Core Specification, input is redirected to the systemctl. Otherwise the command fails with return code 2.
FILES
/etc/init.d
The directory containing System V init scripts.
ENVIRONMENT
LANG, TERM
The only environment variables passed to the init scripts.
SEE ALSO
chkconfig(8), ntsysv(8), systemd(1), systemctl(8), systemd.service(5)
Jan 2006 service(8)