Starting Jetty: chown: changing ownership of ‘/tmp/oxauth.pid’: Operation not permitted
su: must be run from a terminal
su - jetty
$ gluu-server.oxauth
$ gluu-server.jython
Jython 2.7.2rc1 (v2.7.2rc1:1fcef1abf1d6, Mar 1 2020, 16:27:06)
[OpenJDK 64-Bit Server VM (Amazon.com Inc.)] on java1.8.0_222
Type “help”, “copyright”, “credits” or “license” for more information.
f=open("/tmp/text.txt",‘w’)
f.write(“test”)
f.close()
import os
os.getuid()
1000os.system(‘chown 1000 /tmp/text.txt’)
chown: changing ownership of ‘/tmp/text.txt’: Operation not permitted
1
os.stat("/tmp/text.txt").st_uid
1000os.stat("/tmp/text.txt").st_gid
1000os.getuid()
1000os.getgid()
1000os.chown("/tmp/text.txt", 1000, 1000)
Traceback (most recent call last):
File “”, line 1, in
OSError: [Errno 1] Operation not permitted: ‘/tmp/text.txt’