• Post Reply Bookmark Topic Watch Topic
  • New Topic

can a user find his permissions  RSS feed

 
srini carry
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can I see all my permissions , I am not logging as root , I am a user created by my admin , I want to see all the permissions given to me can I see that ?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12156
256
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The 3 commands that I would normally look at are:
  • whoami - as mentioned in your other related topic, there are owner, group, and world permissions. This will tell you who you are logged in as so you can see whether you are the owner of a file (note that although this is almost always the name that you logged in as, there are rare occasions that it might be some other name).
  • groups will tell you which groups you are a member of, and as per the last point, you can then determine whether you might match on a particular group permission if you do not have owner permission.
  • sudo -L will list the commands you are allowed to run with elevated permissions. Look at the man page for sudo for more information on this.
  •  
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!