S
S
Sanes2016-08-19 09:04:40
Java
Sanes, 2016-08-19 09:04:40

Difference in sudo privileges and superuser?

Something I did not understand the answer of ISPSystem support (

is it possible to install ISPmanager from sudo user

it may not work from a sudo user, but it can from any superuser (not necessarily root)

Answer the question

In order to leave comments, you need to log in

5 answer(s)
G
GavriKos, 2016-05-16
@amalchikov

Out of bounds array on line 28. The numbering of elements starts from zero, not from one. Debugger in hand - and forward.

D
Denis Zagaevsky, 2016-05-17
@zagayevskiy

GavriKos is right. Indeed, going beyond the boundaries of the array, in this case - beyond the top (size). You have a push condition: if (kloc==size). If immediately after this to make a pop, then there will be an overflow of the array. In Java, arrays are indexed from 0 to size-1.
By the way, the condition in pop about size == 0 is logically wrong. You will be left with 1 element that you will lose.

C
CityCat4, 2016-08-19
@CityCat4

Some kind of clumsy terminology ...
"sudo user" is apparently the user executing the command through sudo? Write a command or a shell to it in /etc/sudoers - and it will be possible.
"superuser" is apparently a user with uid 0?
On the rights of a difference (at the moment of command execution) is not present. The difference may be in the environment variables - sudo does a great job of filtering environment variables.

O
OnYourLips, 2016-08-19
@OnYourLips

From sudo user (-u other user) will not work.
From sudo root (-u root or without -u) will work.

Y
Yuri Chudnovsky, 2016-08-19
@Frankenstine

My understanding is this:
Regular user - anyone who is not registered in sudoers
sudo-user - a user who has some (not necessarily root or not necessarily full) authority set through sudoers
root is a superuser who can do everything.
Accordingly, if root privileges are given through sudoers only on individual commands, you will not be able to install ISPSystem; if it is possible to get (via sudo -s) full root rights, it will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question