What does the command "chmod a=w g+x alpha" do?

1

1

I was asked this question but didn't know what it does. I know chmod and its usages but what does this exactly do ?

Basit Anwer

Posted 2013-10-31T12:02:12.293

Reputation: 300

In addition to the answers below, that command may complain that it can't find file g+x. You need to separate the mode strings with a comma instead of a space. – glenn jackman – 2013-10-31T13:30:17.963

Answers

2

Change permissions for file alpha, allowing write access for all users and execute access for other users in the file's group. That's my interpretation of it anyway, which seems like an odd combination of permissions to set.

http://www.ss64.com/bash/chmod.html - Man pages are our best friends.

TJennings

Posted 2013-10-31T12:02:12.293

Reputation: 533

1

In general chmod refers to change mode you can use alpha method to change folder permissions

Alpha method: Using alphabets (w, x, r, u, o, g, a, -, +, =, s, t) to change permissions for a file/folder

w--Write

x--eXecute

r—Read

u -- User

g -- Group

o – Others

the command allow you to write access for all users and execute access for other users in file's group

BlueBerry - Vignesh4303

Posted 2013-10-31T12:02:12.293

Reputation: 7 221