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

Permissions Issue on Debian #38

Open
wh1t3h47 opened this issue Apr 27, 2024 · 3 comments
Open

Permissions Issue on Debian #38

wh1t3h47 opened this issue Apr 27, 2024 · 3 comments

Comments

@wh1t3h47
Copy link

Repro: When used in Kali Linux (Debian):

./bin/vramfs /tmp/vramfs 2GB -d 0 -f
allocating vram...
Ignoring invalid max threads value 4294967295 > max (100000).
mounted.

ls /tmp -lh | grep vramfs
d????????? ? ?    ?       ?            ? vramfs
                                                                                                                      
ls /tmp/vramfs    
ls: cannot access '/tmp/vramfs': Permission denied

cat /etc/debian_version 
kali-rolling

uname -a
Linux debian 6.6.9-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.9-1kali1 (2024-01-08) x86_64 GNU/Linux
@wh1t3h47
Copy link
Author

I solved the issue by running as root

Maybe implement a root check?

@leemgs
Copy link

leemgs commented Jun 19, 2024

And then, how did you verify the vramfs effect after enabling swap space (e.g., ./bin/vramfs /tmp/vramfs 2GB -d 0 -f)to solve the shortage of GPU memory space on Debian 6.6.9?

@jlo62
Copy link

jlo62 commented Oct 3, 2024

Simply running as root solves it here to, but I am unable to somehow access the vramfs as the non-root user.

as root:

drwxrwxrwx 2 janluca janluca 4096 Oct  3 14:00 vram

not root:

d????????? ? ?         ?            ? vram

I'd like to compile on the vramfs as a normal user, is this possible?

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

3 participants