Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot launch ventoy as root user #2889

Open
1 task done
manito-manopla opened this issue Jun 25, 2024 · 0 comments
Open
1 task done

Cannot launch ventoy as root user #2889

manito-manopla opened this issue Jun 25, 2024 · 0 comments

Comments

@manito-manopla
Copy link

Official FAQ

  • I have checked the official FAQ.

Ventoy Version

1.0.99

What about latest release

Yes. I have tried the latest release, but the bug still exist.

Try alternative boot mode

No. I didn't try these alternative boot modes.

BIOS Mode

Legacy BIOS Mode

Partition Style

MBR

Disk Capacity

32

Disk Manufacturer

No response

Image file checksum (if applicable)

None

Image file download link (if applicable)

No response

What happened?

Normally, when I want to run ventoy, I have to go to the directory where the executable file is, with a basic privilege user, there are no execution problems, but when I try to run ventoy as a root user, it only returns an error that remains recorded in the log, this is a problem when making symbolic links, since regardless of whether the user is root or not, if it is executed from a symbolic link, the result will be the same, but there is something else that I should mention, although the problem is the same, the information in the log changes depending on the user in which the symbolic link is being executed. I'm going to provide you with the two outputs so you can check them. To summarize, you can run ventoy if you do it from the directory where the executable file is, but if the program is run as root, then it will not work, and if it is run with a symbolic link, then it will not work for any user, whether you have root privileges or not.

Normal user (Using the symbolic link)

log file is <log.txt>
pid:15479 ppid:15410 uid:1000 euid:1000
adjust dir:2  current path:/home/manito
 =========RAW ARGS BEGIN===========
argv[0]=<ventoy>
=========RAW ARGS END===========
Please run under the correct directory!

Root (Using symbolic link)

log file is <log.txt>
pid:15535 ppid:15507 uid:0 euid:0
adjust dir:2  current path:/root
=========RAW ARGS BEGIN===========
argv[0]=<ventoy>
=========RAW ARGS END===========
Please run under the correct directory!

Root (Executed from directory)

log file is <log.txt>
pid:15582 ppid:15507 uid:0 euid:0
adjust dir:1  current path:/opt/ventoy
=========RAW ARGS BEGIN===========
argv[0]=<./VentoyGUI.i386>
=========RAW ARGS END===========
DISPLAY not exist((nil)). Not in X environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant