Contents
- 1 What does drop privilege mean?
- 2 Is Setgid safe?
- 3 What are the various situations under which a DBA issues a revoke command?
- 4 What is Seteuid?
- 5 What is a setuid binary?
- 6 What is revoke and grant in SQL?
- 7 What are the rules for dropping privileges in setuid?
- 8 How does the SPC drop privileges function work?
What does drop privilege mean?
The first of two functions, spc_drop_privileges( ) drops any extra group or user privileges either permanently or temporarily, depending on the value of its only argument. If a nonzero value is passed, privileges will be dropped permanently; otherwise, the privilege drop is temporary.
Is Setgid safe?
setuid and setgid files are dangerous because they might give an unauthorized user root access, or at least access to run a program in another user’s name. To make a program setuid root, the user must be root.
Which command is used to remove a privilege from a user?
The REVOKE command removes user access rights or privileges to the database objects.
What are the various situations under which a DBA issues a revoke command?
The following types of privileges can be revoked:
- Delete data from a specific table.
- Insert data into a specific table.
- Create a foreign key reference to the named table or to a subset of columns from a table.
- Select data from a table, view, or a subset of columns in a table.
- Create a trigger on a table.
What is Seteuid?
seteuid() sets the effective user ID of the calling process. Unprivileged processes may only set the effective user ID to the real user ID, the effective user ID or the saved set-user-ID.
How do I drop root privileges?
sudo is a very useful command that will execute a given command as root without opening a root session. Depending on your configuration you will be able to execute other commands as root — still using sudo — without entering the root password.
What is a setuid binary?
Setuid, which stands for set user ID on execution, is a special type of file permission in Unix and Unix-like operating systems such as Linux and BSD. It is a security tool that permits users to run certain programs with escalated privileges.
What is revoke and grant in SQL?
Revoke command withdraw user privileges on database objects if any granted. It does operations opposite to the Grant command. When a privilege is revoked from a particular user U, then the privileges granted to all other users by user U will be revoked.
What happens when I drop privileges on a process?
In general, the effective user or group ID for a process may be changed as long as the new ID is the same as either the real or the saved ID. Taking all this into account, permanently dropping privileges involves ensuring that the effective, real, and saved IDs are all the same value.
What are the rules for dropping privileges in setuid?
Temporarily dropping privileges requires that the effective and real IDs are the same value, and that the saved ID is unchanged so that the effective ID can later be restored to the higher privilege. These rules apply to both group and user IDs. One more issue needs to be addressed with regard to dropping privileges.
How does the SPC drop privileges function work?
The first of two functions, spc_drop_privileges ( ) drops any extra group or user privileges either permanently or temporarily, depending on the value of its only argument. If a nonzero value is passed, privileges will be dropped permanently; otherwise, the privilege drop is temporary.
Can you roll back a DROP USER command?
After you have issued the command to drop a user, you cannot perform a rollback to re-create the user and his objects. DROP USER is a DDL command, which cannot be rolled back. If you need the objects created by that user, you can revoke the CREATE SESSION system privilege to prevent the user from logging on, instead of dropping the user.