CentOS :: /etc/bashrc read-only

19 sec read

:: How to fix /etc/bashrc read only issue on CentOS
+ error permission denied

# echo "alias ftp='/usr/bin/ftp'" >> /etc/bashrc
-bash: /etc/bashrc: Permission denied
# ls -l /etc/bashrc
-rw-r--r-- 1 root root 1708 Sep 22  2009 /etc/bashrc

+ check and change attribute file

# lsattr /etc/bashrc
----i-------- /etc/bashrc
# chattr -i /etc/bashrc
# lsattr /etc/bashrc
------------- /etc/bashrc

+ edit the file

# echo "alias ftp='/usr/bin/ftp'" >> /etc/bashrc

+ checking the file

# tail -n1 /etc/bashrc
alias ftp='/usr/bin/ftp'

 
:: Links
+ Google

How to fix problem with…

Facing a Git error with the 'vi' editor? Discover how to easily fix it by checking your Vim path and configuring Git to use...
Sysadmin.ID
10 sec read

Apache :: MP4 Streaming

Learn how to enable MP4 streaming in Apache with the installation of the mod_h264 streaming module, making your video content accessible and efficient. Follow...
Sysadmin.ID
18 sec read

Apache :: Flash / FLV…

Learn how to effortlessly configure Apache for FLV streaming by installing the mod_flvx module and updating your httpd.conf file. Discover the simple steps to...
Sysadmin.ID
15 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *