Can't edit .cshrc

Status
Not open for further replies.

danzg

Contributor
Joined
Jun 18, 2011
Messages
105
I'm trying to edit my /.cshrc and ~/.cshrc files.

I'm logged in as root; the files show owner root and 644 permissions.
But when I try to edit, I get "read only filesystem."

Code:
[root@Wheelhouse NAS] ~# ll /root
total 20
drwxr-xr-x   3 root  wheel   512 Aug 21 15:57 ./
drwxr-xr-x  20 root  wheel   512 Jul 20 17:38 ../
-rw-r--r--   1 root  wheel   919 Jun 11 13:01 .cshrc
-rw-r--r--   1 root  wheel   148 Jul 20 17:36 .k5login
-rw-r--r--   1 root  wheel   296 Jul 20 17:36 .login
-rw-r--r--   1 root  wheel   489 Jun 11 13:01 .profile
-rw-r--r--   1 root  wheel  1128 Jun 11 13:01 .shrc
drwx------   2 root  wheel   512 Aug 18 21:52 .ssh/
-rwxr-xr-x   1 root  wheel  1677 Jun 11 13:00 change_password*
-rwxr-xr-x   1 root  wheel  1630 Jun 11 13:00 save_cfg*
-rwxr-xr-x   1 root  wheel   489 Jun 11 13:01 save_rrds.sh*
-rwxr-xr-x   1 root  wheel  1591 Jun 11 13:00 save_sshkeys*
-rwxr-xr-x   1 root  wheel  1567 Jul 19 19:09 update*
-rwxr-xr-x   1 root  wheel  2780 Jun 11 13:01 updatep1*
-rwxr-xr-x   1 root  wheel  3056 Jun 11 13:01 updatep2*
Code:
[root@Wheelhouse NAS] ~# ll /
total 26
drwxr-xr-x  20 root  wheel      512 Jul 20 17:38 ./
drwxr-xr-x  20 root  wheel      512 Jul 20 17:38 ../
-rw-r--r--   1 root  wheel      790 Jul 20 17:36 .cshrc
-rw-r--r--   1 root  wheel      257 Jul 20 17:36 .profile
drwxrwxr-x   2 root  operator   512 Jul 20 17:38 .snap/
-rwxr-xr-x   1 root  wheel     6196 Jul 20 17:36 COPYRIGHT*
drwxr-xr-x   2 root  wheel     1024 Jul 20 17:38 bin/
drwxr-xr-x   7 root  wheel     1024 Aug 21 16:05 boot/
drwxr-xr-x   2 root  wheel      512 Jul 20 17:36 cfg/
drwxr-xr-x   4 root  wheel      512 Jul 20 17:38 conf/
drwxr-xr-x   5 root  wheel      512 Aug 22 16:00 data/
dr-xr-xr-x   8 root  wheel      512 Aug 22 12:41 dev/
dr-xr-xr-x  23 root  wheel     2560 Aug 22 12:46 etc/
lrwxr-xr-x   1 root  wheel        9 Jul 20 17:38 home@ -> /var/home
drwxr-xr-x   3 root  wheel     1536 Jul 20 17:35 lib/
drwxr-xr-x   2 root  wheel      512 Jul 20 17:35 libexec/
drwxr-xr-x   2 root  wheel      512 Jul 20 17:35 media/
drwxr-xr-x   4 root  wheel      512 Aug 22 12:42 mnt/
drwxr-xr-x   2 root  wheel      512 Jul 20 17:35 proc/
drwxr-xr-x   2 root  wheel     2560 Jul 20 17:35 rescue/
drwxr-xr-x   3 root  wheel      512 Aug 21 15:57 root/
drwxr-xr-x   2 root  wheel     2560 Jul 20 17:38 sbin/
lrwxr-xr-x   1 root  wheel       11 Jul 20 17:35 sys@ -> usr/src/sys
lrwxr-xr-x   1 root  wheel        7 Jul 20 17:38 tmp@ -> var/tmp
drwxr-xr-x   9 root  wheel      512 Jul 20 17:38 usr/
drwxr-xr-x  25 root  wheel      512 Aug 22 12:42 var/
[root@Wheelhouse NAS] ~# 
 

survive

Behold the Wumpus
Moderator
Joined
May 28, 2011
Messages
875
Hi danzg,

Try mounting "/" with "mount -uw /", then make it read-only again with "mount -ur /" when you are done editing.

-Will
 
Status
Not open for further replies.
Top