Questions tagged [setfsuid]

setfsuid() is a function that is used to set user identity used for file system checks on UNIX -like systems.

3 questions
2
votes
0 answers

setfsuid() - how to interpret result code?

The man page for setfsuid() says: On success, the previous value of fsuid is returned. On error, the current value of fsuid is returned. If I'm not wrong one could simply say "setfsuid() always returns the fsuid value that was set before calling…
Udo G
  • 12,572
  • 13
  • 56
  • 89
1
vote
2 answers

setfs(u/g)id or set(u/g)id with eventlet(python green thread)

We have an existing project using Eventlet module. There is a server handling client request using green threads. All the requests are handled by a single user 'User A' I now need to change this to do a setfsuid/setfsgid on the threads so that the…
mittal
  • 915
  • 10
  • 29
0
votes
1 answer

linux access system call not working as expected

I am trying to do file operations depending on logged-in user in my java web application. For this, I have used JNI native implementation to set the fs uid & fs gid to the logged-in user's uid and gid. Now, file operations are allowed only if the…