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

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

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

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