回文章列表
作者myCrystal.bbs@ptt.cc ( ) 看板: linux
標題[問題] read-only file
時間批踢踢實業 (2008/05/19 Mon 11:01:57)
distribute : ubuntu 8

請問要修改一個read-only file

像是/etc/profile

這個檔案是屬於root 且 -rw-r--r--

我想說 修改檔案權限

但是我對ubuntu 的root 還是不了解

我是用自己新增的一個account login 假設是 uuu,安裝時候預設的account 是rrr

我登入uuu之後

chmod u+x /etc/profile

和我說 changing permissions of '/etc/profile': Operation not permitted

我想說試試看 sudo chmod u+x /etc/profile

這時候要enter的密碼應該是 uuu的密碼? 還是 rrr的密碼

我試過兩個 都不行。

這是我對root 這個帳號的疑惑。

所以也沒辦法修改 profile

除此之外 還有別的方式可以修改read-only file嗎?

thanks

--
※ 發信站: 批踢踢實業坊(ptt.cc) 
◆ From: 140.113.166.28
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻