Unable to create subdirectory in a directory for which I have group permissionsShare folder between usersdirectory permissions adding user in a groupHow to let smb share mount via fstab assign full permission to new created file or directory?Terminal: List all directories for which a user or group has write permissionUser not in group despite /etc/group contentsWrite Permissions denied to LAN mounted driveCan't cd to directory for which group has permissions

Is the SCK line in I2C unidirectional or bidirectional?

How can you castle legally in Chess960 when the castling rook is on the king's destination square?

Transit in Amsterdam for 10 hours, do I have time to visit the city for sightseeing?

There are polygons with only right angles which have an odd number of corners

Can a power set be equal in cardinality to a subset of it that is non-exhaustively overlapping?

What clothing should I bring to Mt. Titlis in Switzerland during December?

Instant coffee melts like chocolate

Removing characters from end of string from character to character

Is there a Ukrainian transcript of Trump's controversial July 25 call to President Zelensky?

Is there a simple way to typeset playing cards?

What does "2 fingers to Scotland" mean in Peter Grant's statement about Johnson not listening to the SNP's Westminster leader speeches?

Why the real and imaginary parts of a complex analytic function are not independent?

Employer reneged on negotiated clauses that weren't part of agreed contract, citing budget cuts - what can I do?

Creating cryptographic algorithms at runtime

Washing the skin of a dead rat

Does the on'yomi of 輪 (リン) have any relation to the English "ring", or is it a coincidence?

Graph with cropped letters

How are side-channel attacks executed? What does an attacker need to execute a side channel attack?

"The" for the first time only

In what way were Renaissance battles like chess matches?

Can Alter Self be used to enter an enemy's body and destroy it from the inside?

Is putting money in a 401(k) plan risky?

During a log backup is the data backed up to the start or end of the operation?

How to persuade players not to cheat?



Unable to create subdirectory in a directory for which I have group permissions


Share folder between usersdirectory permissions adding user in a groupHow to let smb share mount via fstab assign full permission to new created file or directory?Terminal: List all directories for which a user or group has write permissionUser not in group despite /etc/group contentsWrite Permissions denied to LAN mounted driveCan't cd to directory for which group has permissions






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















OK, this has been asked before and here, but none of the answers are working for me, so I'm asking again....



My username is tullyc, and according to groups I have permissions for the tomcat group.



$ groups
tullyc tomcat


and id agrees:



$ id
uid=1005(tullyc) gid=1005(tullyc) groups=1005(tullyc),1003(tomcat)
$ id -a
uid=1005(tullyc) gid=1005(tullyc) groups=1005(tullyc),1003(tomcat)


but, I still cannot create directories!



$ ls -al /usr/share/tomcat9-root/webapps/
total 45128
drwxr-x--- 4 tomcat tomcat 4096 Jun 14 20:10 .
drwxrwxr-x 7 tomcat tomcat 4096 Jun 14 21:08 ..
-rw-r--r-- 1 tullyc tullyc 46192111 Jun 14 20:10 radar.war
drwxr-xr-x 2 root root 4096 Jun 14 15:27 radar_data
drwxr-xr-x 3 tullyc tullyc 4096 Jun 14 15:28 radarui


Based on the directory listing, and output from groups and id this should work:



$ mkdir /usr/share/tomcat9-root/webapps/radar
mkdir: cannot create directory '/usr/share/tomcat9-root/webapps/radar': Permission denied


I initially tried just exiting my ssh session and starting a new one but still got permission denied. So, I took the sledgehammer approach (this is not my production server so I can reboot at will) and rebooted. Even after a reboot I still get the same answers from groups and id and still get permission denied.



I am puzzled because I was previously able to create files and directories in the /usr/share/tomcat9-root/webapps directory after setting it's owner and group to tomcat:tomcat.



So, having both logged out and logged back in and even rebooted the server, and showing that I have the proper groups and permissions, why can't I create files or directories?










share|improve this question


























  • Perhaps try newgrp tomcat before creating the directory?

    – doneal24
    Jun 15 at 2:13






  • 3





    drwxr-x--- 4 tomcat tomcat 4096 Jun 14 20:10 . says members of group tomcat don't have write permission in the current directory (which is /usr/share/tomcat9-root/webapps/), no?

    – steeldriver
    Jun 15 at 2:13











  • DOH!!! Head slap! I was mis reading the directory listing! I was confusing . and .. and reading the permissions for .. as the permissions for the current directory! Thanks @steeldriver

    – Chris
    Jun 17 at 12:25


















0

















OK, this has been asked before and here, but none of the answers are working for me, so I'm asking again....



My username is tullyc, and according to groups I have permissions for the tomcat group.



$ groups
tullyc tomcat


and id agrees:



$ id
uid=1005(tullyc) gid=1005(tullyc) groups=1005(tullyc),1003(tomcat)
$ id -a
uid=1005(tullyc) gid=1005(tullyc) groups=1005(tullyc),1003(tomcat)


but, I still cannot create directories!



$ ls -al /usr/share/tomcat9-root/webapps/
total 45128
drwxr-x--- 4 tomcat tomcat 4096 Jun 14 20:10 .
drwxrwxr-x 7 tomcat tomcat 4096 Jun 14 21:08 ..
-rw-r--r-- 1 tullyc tullyc 46192111 Jun 14 20:10 radar.war
drwxr-xr-x 2 root root 4096 Jun 14 15:27 radar_data
drwxr-xr-x 3 tullyc tullyc 4096 Jun 14 15:28 radarui


Based on the directory listing, and output from groups and id this should work:



$ mkdir /usr/share/tomcat9-root/webapps/radar
mkdir: cannot create directory '/usr/share/tomcat9-root/webapps/radar': Permission denied


I initially tried just exiting my ssh session and starting a new one but still got permission denied. So, I took the sledgehammer approach (this is not my production server so I can reboot at will) and rebooted. Even after a reboot I still get the same answers from groups and id and still get permission denied.



I am puzzled because I was previously able to create files and directories in the /usr/share/tomcat9-root/webapps directory after setting it's owner and group to tomcat:tomcat.



So, having both logged out and logged back in and even rebooted the server, and showing that I have the proper groups and permissions, why can't I create files or directories?










share|improve this question


























  • Perhaps try newgrp tomcat before creating the directory?

    – doneal24
    Jun 15 at 2:13






  • 3





    drwxr-x--- 4 tomcat tomcat 4096 Jun 14 20:10 . says members of group tomcat don't have write permission in the current directory (which is /usr/share/tomcat9-root/webapps/), no?

    – steeldriver
    Jun 15 at 2:13











  • DOH!!! Head slap! I was mis reading the directory listing! I was confusing . and .. and reading the permissions for .. as the permissions for the current directory! Thanks @steeldriver

    – Chris
    Jun 17 at 12:25














0












0








0








OK, this has been asked before and here, but none of the answers are working for me, so I'm asking again....



My username is tullyc, and according to groups I have permissions for the tomcat group.



$ groups
tullyc tomcat


and id agrees:



$ id
uid=1005(tullyc) gid=1005(tullyc) groups=1005(tullyc),1003(tomcat)
$ id -a
uid=1005(tullyc) gid=1005(tullyc) groups=1005(tullyc),1003(tomcat)


but, I still cannot create directories!



$ ls -al /usr/share/tomcat9-root/webapps/
total 45128
drwxr-x--- 4 tomcat tomcat 4096 Jun 14 20:10 .
drwxrwxr-x 7 tomcat tomcat 4096 Jun 14 21:08 ..
-rw-r--r-- 1 tullyc tullyc 46192111 Jun 14 20:10 radar.war
drwxr-xr-x 2 root root 4096 Jun 14 15:27 radar_data
drwxr-xr-x 3 tullyc tullyc 4096 Jun 14 15:28 radarui


Based on the directory listing, and output from groups and id this should work:



$ mkdir /usr/share/tomcat9-root/webapps/radar
mkdir: cannot create directory '/usr/share/tomcat9-root/webapps/radar': Permission denied


I initially tried just exiting my ssh session and starting a new one but still got permission denied. So, I took the sledgehammer approach (this is not my production server so I can reboot at will) and rebooted. Even after a reboot I still get the same answers from groups and id and still get permission denied.



I am puzzled because I was previously able to create files and directories in the /usr/share/tomcat9-root/webapps directory after setting it's owner and group to tomcat:tomcat.



So, having both logged out and logged back in and even rebooted the server, and showing that I have the proper groups and permissions, why can't I create files or directories?










share|improve this question















OK, this has been asked before and here, but none of the answers are working for me, so I'm asking again....



My username is tullyc, and according to groups I have permissions for the tomcat group.



$ groups
tullyc tomcat


and id agrees:



$ id
uid=1005(tullyc) gid=1005(tullyc) groups=1005(tullyc),1003(tomcat)
$ id -a
uid=1005(tullyc) gid=1005(tullyc) groups=1005(tullyc),1003(tomcat)


but, I still cannot create directories!



$ ls -al /usr/share/tomcat9-root/webapps/
total 45128
drwxr-x--- 4 tomcat tomcat 4096 Jun 14 20:10 .
drwxrwxr-x 7 tomcat tomcat 4096 Jun 14 21:08 ..
-rw-r--r-- 1 tullyc tullyc 46192111 Jun 14 20:10 radar.war
drwxr-xr-x 2 root root 4096 Jun 14 15:27 radar_data
drwxr-xr-x 3 tullyc tullyc 4096 Jun 14 15:28 radarui


Based on the directory listing, and output from groups and id this should work:



$ mkdir /usr/share/tomcat9-root/webapps/radar
mkdir: cannot create directory '/usr/share/tomcat9-root/webapps/radar': Permission denied


I initially tried just exiting my ssh session and starting a new one but still got permission denied. So, I took the sledgehammer approach (this is not my production server so I can reboot at will) and rebooted. Even after a reboot I still get the same answers from groups and id and still get permission denied.



I am puzzled because I was previously able to create files and directories in the /usr/share/tomcat9-root/webapps directory after setting it's owner and group to tomcat:tomcat.



So, having both logged out and logged back in and even rebooted the server, and showing that I have the proper groups and permissions, why can't I create files or directories?







permissions debian






share|improve this question














share|improve this question











share|improve this question




share|improve this question










asked Jun 15 at 2:09









ChrisChris

616 bronze badges




616 bronze badges















  • Perhaps try newgrp tomcat before creating the directory?

    – doneal24
    Jun 15 at 2:13






  • 3





    drwxr-x--- 4 tomcat tomcat 4096 Jun 14 20:10 . says members of group tomcat don't have write permission in the current directory (which is /usr/share/tomcat9-root/webapps/), no?

    – steeldriver
    Jun 15 at 2:13











  • DOH!!! Head slap! I was mis reading the directory listing! I was confusing . and .. and reading the permissions for .. as the permissions for the current directory! Thanks @steeldriver

    – Chris
    Jun 17 at 12:25


















  • Perhaps try newgrp tomcat before creating the directory?

    – doneal24
    Jun 15 at 2:13






  • 3





    drwxr-x--- 4 tomcat tomcat 4096 Jun 14 20:10 . says members of group tomcat don't have write permission in the current directory (which is /usr/share/tomcat9-root/webapps/), no?

    – steeldriver
    Jun 15 at 2:13











  • DOH!!! Head slap! I was mis reading the directory listing! I was confusing . and .. and reading the permissions for .. as the permissions for the current directory! Thanks @steeldriver

    – Chris
    Jun 17 at 12:25

















Perhaps try newgrp tomcat before creating the directory?

– doneal24
Jun 15 at 2:13





Perhaps try newgrp tomcat before creating the directory?

– doneal24
Jun 15 at 2:13




3




3





drwxr-x--- 4 tomcat tomcat 4096 Jun 14 20:10 . says members of group tomcat don't have write permission in the current directory (which is /usr/share/tomcat9-root/webapps/), no?

– steeldriver
Jun 15 at 2:13





drwxr-x--- 4 tomcat tomcat 4096 Jun 14 20:10 . says members of group tomcat don't have write permission in the current directory (which is /usr/share/tomcat9-root/webapps/), no?

– steeldriver
Jun 15 at 2:13













DOH!!! Head slap! I was mis reading the directory listing! I was confusing . and .. and reading the permissions for .. as the permissions for the current directory! Thanks @steeldriver

– Chris
Jun 17 at 12:25






DOH!!! Head slap! I was mis reading the directory listing! I was confusing . and .. and reading the permissions for .. as the permissions for the current directory! Thanks @steeldriver

– Chris
Jun 17 at 12:25











0






active

oldest

votes













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1151186%2funable-to-create-subdirectory-in-a-directory-for-which-i-have-group-permissions%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown


























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1151186%2funable-to-create-subdirectory-in-a-directory-for-which-i-have-group-permissions%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown









Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?