Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: iscydonia on May 07, 2004, 10:34:25 PM
-
Hi,
I'm a newb so excuse me if i've overlooked something fundamental.
Basically, the only way i am able to edit .conf & other files at the moment is through "vi".
I'm not quite comfortable with vi yet and if an easier option exists, would prefer to use that.
How else can i edit files on my server through a remote login (ssh).
Thanks.
-
Remember Norton Commander?
There is clone of it called Midnight Commander for basic operations.
run mc and enjoy or just use mcedit (builtin editor) as your basic editor. You can call it mcedit filename
-
Remember Norton Commander?
There is clone of it called Midnight Commander for basic operations.
run mc and enjoy or just use mcedit (builtin editor) as your basic editor. You can call it mcedit filename
i certainly do:). cool.
ahh. just checked it out then to edit samba.conf. perfect!
Also, while i was stumped with this, i tried copying files/directories to a user or shared ibay. My idea was that i could edit it there in windows (over samba), then copy it back to where it belongs from ssh. i know, making it hard but hey, i almost got there:).
Only problem was permissions, which i'm researching now since i dont know how to change. Problem was, it would never let me save the changes to any of the files.
-
To get a view of permissions and ownership of files in a directory just enter ls -l
For permissions changing read about chmod, and for ownership changing read about chown (man chmod or man chown).
For editing outside of MC try the inbuilt editor Pico. Its somewhat easier to handle than vi.
Have a good time configuring your SME server - the best there is !
-
To get a view of permissions and ownership of files in a directory just enter ls -l
For permissions changing read about chmod, and for ownership changing read about chown (man chmod or man chown).
For editing outside of MC try the inbuilt editor Pico. Its somewhat easier to handle than vi.
Have a good time configuring your SME server - the best there is !
I agree 100% :D
Thanks for that... just ran it in the area that i was unable to edit from and got this:
drwxrwsr-x 4 root www 4096 May 8 06:26 awol
drwxrwsr-x 4 root www 4096 May 8 06:27 httpd
drwxrwsr-x 2 root www 4096 May 8 06:32 samba
thanks. as you can see (unless i'm mistaken), it wasn't due to chmod. but to groups. That particular ibay had limited options for non-group users. I just had to add myself to the group with full priveledges(or just allow access to all). and now it works:)
I cant believe how straight forward this is:D. No other distro i've tried has been like this.... about 8 that i've tried...
-
damn... i keep forgetting to login... :P
-
You should give WinSCP (http://winscp.sourceforge.net/eng/) a try. It will copy/move file and while maintaining the original permissions. The built it editor is very easy to use.
-
Only problem was permissions, which i'm researching now since i dont know how to change. Problem was, it would never let me save the changes to any of the files.
just like it was in good old time:
inside mc use insert to select, then F9, F, A
-
I like psftp and pscp that came with the putty package at:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Login as root and you can put stuff wherever you want.
Ah yes, the serenity of the ftp command line. Reminds me of my first shell account :-)