Sponsored Content
Top Forums UNIX for Dummies Questions & Answers The professional way to use chmod ? Post 302960643 by MadeInGermany on Wednesday 18th of November 2015 04:17:47 AM
Old 11-18-2015
Method1 sets just selected permission bits:
g+x -> set the x bit for group.
ug+x -> set the x bits for user and group.
o-x -> clear the x bit for others.
Method2 sets all permission bits. The bits that are not set are cleared.

Code:
chmod 774

is identical with
Code:
chmod ug+rwx,o+r-wx

This User Gave Thanks to MadeInGermany For This Post:
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Windows XP Professional and FreeBSD

From FreeBSD how could I access files/directories in my Windows XP machine (networked) Is there any program in FreeBSD/Unix that I could use to emulate/control my Windows XP machine and what do I need to enable or install in my Windows XP machine (6 Replies)
Discussion started by: charlie499
6 Replies

2. UNIX for Dummies Questions & Answers

Any Professional Help me in this ?

Hello Here i got a problem, i bought new 40GB hard disk today, i made it as Primary Slave, No when i install Solaris, it says disk need fdisk to make solaris partition, but it does not say which disk need partition, i mean i have two disks, how i suppose to know which disk this will partition,... (1 Reply)
Discussion started by: abidmalik
1 Replies

3. Post Here to Contact Site Administrators and Moderators

Professional moderator

Hi there! I liked your forum so much! I'm a professional moderator and I would like to moderate your forum or any part of it. If you are interested in this idea, please apply to me on my e-mail. (5 Replies)
Discussion started by: SoulFly
5 Replies

4. Programming

Professional advice on my project

Hi guys, I'm pretty much a newbie to C.I need professional advice on my project.I'm supposed to write a program to scan a directory for .exe files and list them if any and also subsequently scan the subfolders for the same and so on... Any advice on how to do it would be gladly accepted.... (3 Replies)
Discussion started by: rakesh_01
3 Replies

5. UNIX for Advanced & Expert Users

Who actually wrote Professional Linux Programming ?

Hello, Who actually wrote Professional Linux Programming of Wrox publication as there are two different sets of writers, one set consists of Jon Masters and Richard Blum and another set of writers is Neil Mathew with lots of other writers. Plz resolve it. I'm really confused. Regards.. (0 Replies)
Discussion started by: vectrum
0 Replies

6. UNIX and Linux Applications

What is the difference between chmod in solaris and chmod in Linux?

i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies
CHMOD(1)						      General Commands Manual							  CHMOD(1)

NAME
chmod - change mode SYNOPSIS
chmod mode file ... DESCRIPTION
The mode of each named file is changed according to mode, which may be an octal number or a symbolic change to the existing mode. A mode is an octal number constructed from the OR of the following modes. 0400 read by owner 0200 write by owner 0100 execute (search in directory) by owner 0070 read, write, execute (search) by group 0007 read, write, execute (search) by others A symbolic mode has the form: [who] op permission The who part is a combination of the letters u (for user's permissions), g (group) and o (other). The letter a stands for ugo. If who is omitted, the default is a. Op can be + to add permission to the file's mode, - to take away permission, and = to assign permission absolutely (all other bits will be reset). Permission is any combination of the letters r (read), w (write), x (execute), a (append only), and l (exclusive access). Only the owner of a file or the group leader of its group may change the file's mode. SOURCE
/sys/src/cmd/chmod.c SEE ALSO
ls(1), stat(2), stat(5) CHMOD(1)
All times are GMT -4. The time now is 02:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy