serv00获取(伪)root权限

想到proot这个东西,但是freebsd不支持(因为不是Linux内核),所以查了查关键词,找到了个项目

我没测试过,但理论可行,大伙试试

不行的话联系我把帖子删了

理论可以pkg install

但是serv00这小存储我是实在没想到能干什么,看个乐子就行)

50 个赞

感谢佬分享!

4 个赞

没测试过先别感谢()

2 个赞

坐等后续 :tieba_003:

1 个赞

#Serv00添加

简单试了下确实可以

For more information on available commands and options see ‘pkg help’.
[root\033[1;35m@pkg install wget
Updating FreeBSD repository catalogue…
Fetching meta.conf: 100% 178 B 0.2kB/s 00:01
Fetching data.pkg: 100% 7 MiB 7.3MB/s 00:01
Processing entries: 100%
FreeBSD repository update completed. 34439 packages processed.
All repositories are up to date.
Updating database digests format: 100%
The following 5 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
gettext-runtime: 0.22.5
indexinfo: 0.3.1
libidn2: 2.3.7
libunistring: 1.2
wget: 1.24.5

Number of packages to be installed: 5

The process will require 8 MiB more space.
2 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/5] Fetching wget-1.24.5.pkg: 100% 775 KiB 793.4kB/s 00:01
[2/5] Fetching indexinfo-0.3.1.pkg: 100% 6 KiB 6.0kB/s 00:01
[3/5] Fetching libidn2-2.3.7.pkg: 100% 155 KiB 159.0kB/s 00:01
[4/5] Fetching libunistring-1.2.pkg: 100% 680 KiB 696.1kB/s 00:01
[5/5] Fetching gettext-runtime-0.22.5.pkg: 100% 231 KiB 236.8kB/s 00:01
Checking integrity… done (0 conflicting)
[1/5] Installing indexinfo-0.3.1…
[1/5] Extracting indexinfo-0.3.1: 100%
[2/5] Installing libunistring-1.2…
[2/5] Extracting libunistring-1.2: 100%
pkg: Fail to kill all processes:No such process
[3/5] Installing libidn2-2.3.7…
[3/5] Extracting libidn2-2.3.7: 100%
/etc/rc.subr: Cannot fork: Resource temporarily unavailable
/etc/rc.subr: Cannot fork: Resource temporarily unavailable
pkg: POST-INSTALL script failed
pkg: Fail to kill all processes:No such process
[4/5] Installing gettext-runtime-0.22.5…
[4/5] Extracting gettext-runtime-0.22.5: 100%
pkg: Cannot runscript POST-INSTALL:Resource temporarily unavailable
[5/5] Installing wget-1.24.5…
[5/5] Extracting wget-1.24.5: 100%
pkg: Cannot fork(lua_script): Resource temporarily unavailable
pkg: Cannot runscript POST-INSTALL:Resource temporarily unavailable
#wget
wget: missing URL
Usage: wget [OPTION]… [URL]…

Try `wget --help’ for more options.
#wget www.x.com

Saving to: ‘index.html’

index.html [ <=> ] 2.55K --.-KB/s in 0s

2024-10-06 16:56:54 (152 MB/s) - ‘index.html’ saved [2610]

2 个赞

可以的,占用空间估计很大,所以只能玩玩

1 个赞

proot性能损失很大的,以前拿手机试过,跟chroot完全两码事

2 个赞

你该不会是套了个qemu user跨的架构吧

理论上proot有损失但不会那么大

忘了,以前拿termux开的

学习一下,谢谢分享

顶一顶 让更多的人帮我尝试一下()

哇,感谢分享

4 个赞

大佬,感谢分享

不是freebsd
测了测edu 薅的机子,类似serv00 无root 权限
docker rootless 和 podman 都不行
就proot 完美


2 个赞

a?linux当然是用proot啊,serv00是freebsd吧,freebsd应该不能用proot啊

Freebsd跟Linux都不是一个东西)

是不是能拿来搭个节点? :tieba_025:

1 个赞

搭节点不需要root权限其实()

1 个赞

昂 我是拿root 权限啊 之前没弄过proot 虽然proot 还是跑不了docker 但是稍微好使了一点

1 个赞