Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
fy
V2EX  ›  Linux

求助:有一台机子,能够以 666 权限写文件(但不能 append,只能创建新文件),如何拿到权限?

  •  
  •   fy ·
    fy0 · Aug 24, 2014 · 4245 views
    This topic created in 4461 days ago, the information mentioned may be changed or developed.
    nomaka
    nomaka
    Aug 24, 2014
    1
    去写 /etc/sudoers 呀 然后就能sudo 了
    tmqhliu
    tmqhliu
    Aug 24, 2014
    2
    想法把脚本写到 /etc/init.d 里边 让系统启动时自动运行
    fy
    fy
    OP
    Aug 24, 2014
    3
    @nomaka
    @tmqhliu

    不能修改文件,只能创建新文件啊
    paulw54jrn
    paulw54jrn
    Aug 24, 2014
    4
    用Symlink race 进行攻击?
    tmqhliu
    tmqhliu
    Aug 24, 2014
    5
    @fy 让你往 /etc/init.d/ 里写新脚本 不行吗?
    oott123
    oott123
    Aug 24, 2014 via Android
    6
    @tmqhliu 666好像没有执行权限啊…好难办
    ffffwh
    ffffwh
    Aug 24, 2014 via iPhone
    7
    这权限好邪恶。。。
    tonyluj
    tonyluj
    Aug 24, 2014
    8
    不能append?能Trunc吗?
    fy
    fy
    OP
    Aug 24, 2014
    9
    @tonyluj 是弄成 -r--r--r-- 吗?不行…… 试过往cron里写了 写不进去
    Lentin
    Lentin
    Aug 24, 2014 via Android
    10
    写他丫的几百G的东西撑死他
    RIcter
    RIcter
    Aug 24, 2014 via iPhone
    11
    MySQL下的提权么(´・ω・)
    参加360的比赛么(´・ω・)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4751 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 03:02 · PVG 11:02 · LAX 19:02 · JFK 22:02
    ♥ Do have faith in what you're doing.