ubunt下修改具root权限的文件

来源:百度文库 编辑:神马文学网 时间:2024/05/08 08:08:51
     most Files in folders such as /etc  are belonged root users. but ubunt donn't permit normal users  modify it. because the permission of these files are set to 644.
    when install some software  we may need to modify these files ,here two ways for us to get the permission :
1
#  sudo -i
#  gedit  yourFile

sudo -i  command can change user to root in terminal, now you can use all of the command as root users.
when finish editing the file ,remember to close it , the terminal will automatically return to current user.

2
#sudo gedit yourFile

this can open the file with root permission, you can modify it , save it and so on.. when close it ,the terminal also will return to current usr.