Skip to main content
updated the question
Source Link
Sriram
  • 413
  • 2
  • 8
  • 19

I am working in my Tomcat deployment directory. The files in the directory have the permission:

drwxrwsr-x. 10 tomcat www 4.0K Mar 15 15:14 webapps 

A sample sub-directory within webapps looks like this:

drwxr-sr-x. 6 tomcat www 4.0K Mar 15 15:19 oldApps 

While I am a member of group www, I am able to create directories in oldApps. This is despite the group www having no write permissions on oldApps.

I have a line in my sudoers file that allows mkdir to members of www group. I am not able to understand how I can write to the folder oldApps without any write permissions on the folder.

Update:
Ok, I get that I might be running the mkdir command as root, thus allowing me to create folders. How do I remove the line from sudoers and still be able to create directories?

I am working in my Tomcat deployment directory. The files in the directory have the permission:

drwxrwsr-x. 10 tomcat www 4.0K Mar 15 15:14 webapps 

A sample sub-directory within webapps looks like this:

drwxr-sr-x. 6 tomcat www 4.0K Mar 15 15:19 oldApps 

While I am a member of group www, I am able to create directories in oldApps. This is despite the group www having no write permissions on oldApps.

I have a line in my sudoers file that allows mkdir to members of www group. I am not able to understand how I can write to the folder oldApps without any write permissions on the folder.

I am working in my Tomcat deployment directory. The files in the directory have the permission:

drwxrwsr-x. 10 tomcat www 4.0K Mar 15 15:14 webapps 

A sample sub-directory within webapps looks like this:

drwxr-sr-x. 6 tomcat www 4.0K Mar 15 15:19 oldApps 

While I am a member of group www, I am able to create directories in oldApps. This is despite the group www having no write permissions on oldApps.

I have a line in my sudoers file that allows mkdir to members of www group. I am not able to understand how I can write to the folder oldApps without any write permissions on the folder.

Update:
Ok, I get that I might be running the mkdir command as root, thus allowing me to create folders. How do I remove the line from sudoers and still be able to create directories?

Source Link
Sriram
  • 413
  • 2
  • 8
  • 19

How can I create a sub-directory where my group has no write permissions?

I am working in my Tomcat deployment directory. The files in the directory have the permission:

drwxrwsr-x. 10 tomcat www 4.0K Mar 15 15:14 webapps 

A sample sub-directory within webapps looks like this:

drwxr-sr-x. 6 tomcat www 4.0K Mar 15 15:19 oldApps 

While I am a member of group www, I am able to create directories in oldApps. This is despite the group www having no write permissions on oldApps.

I have a line in my sudoers file that allows mkdir to members of www group. I am not able to understand how I can write to the folder oldApps without any write permissions on the folder.