View Full Version : sftp ...
Hi guys,
I want to help security of my customers...
Isn't possible to give sftp without giving ssh console access ? I mean, i want to give only the sftp... not the console access...
charles
07-05-2005, 11:36 PM
Yes.
1. change their shell to /usr/libexec/openssh/sftp-server
2. add /usr/libexec/openssh/sftp-server to /etc/shells
Just FYI, i am not sure if they get jailed to their home directory with this, so please test.
hth
charles
good... i'll test it as soon as possible and leave the results here...
Norm1322
08-15-2005, 11:58 AM
In case anyone is waiting on Fred ;) I've tried this using WINSCP and the user is jailed.
--
Norm
Haha! I didn't had the time to tried it... even if the change is pretty easy and fast to do... High priority first than this kind of tricks ;)
Happy to see that it's working great norm!
Robert
08-15-2005, 02:28 PM
Wait till we get the wiki up. ;)
woh wiki
use mediawiki (:
charles
08-15-2005, 02:47 PM
Ok, all you mediawiki lovers. Point me to a good reference how to customize and add to the navigation links. The stuff I tried isn't working. To be honest I think twiki is better at this point :(
Sneak preview at http://www.deftechgroup.com/wiki
charles
Charles,
I actually see:
* Main Page
* <dedicated>
* <vps>
* <reseller>
* <shared>
* Recent changes
* Random page
* Help
So, you're on the right track...I think.
Best,
elix
charles
08-15-2005, 04:43 PM
Yes, but see the escaped < and > ? thats the problem.
ndndixie
08-15-2005, 07:55 PM
Never used it but I've yet to find an application that I can't alter the heck out of :D
ndndixie
08-15-2005, 08:15 PM
<style type="text/css">
<!--
body {background: white; color: black; margin: 0; padding: 0;}
ul {padding: 0; margin: 0; border-bottom: 1px blue;
font: 1em sans-serif; width:230px}
ul li {list-style-type: none;
border: 1px blue; border-width: 1px 1px 0 3px;
position: relative; margin: 0; padding: 0;width:230px}
ul ul {display: none;}
ul li:hover > ul {display: block; position: absolute; top: -1px; left: 5px;}
li a {display: block; padding: 5px 7px; text-decoration: none;
background: #FFF;}
ul#topmenu li a:hover {background: #000066;}
li.sub > a {font-weight: bold; background: #FFE;}
h1 {margin: 0; padding: 1em 0.25em 0; font: bold 2.5em Arial, sans-serif; line-height: 0.8em; border-bottom: 1px blue; text-align: right; color: #557; letter-spacing: 2px;}
div#main {margin: 0 8em 0 1em; padding: 0; border-right: 1px blue;}
div#main p {margin: 1em 3em 1em 0.5em;}
ul#topmenu {width: 6em;}
ul#topmenu > li:hover > ul {width: 20em; top: 1.5em; left: -3px;}
ul ul {width: 10em;}
h4 {margin: 0 0.5em 0 0; padding: 0 0.25em; font-size: 90%; border-bottom: 1px blue;}
-->
</style>
</head>
<body> <ul id="topmenu"><li class="sub"> <a href="/wiki/index.php?title=Dedicated:Main_page&action=edit" class="new" title="Dedicated:Main page">Dedicated Servers</a>
</li><li class="sub"> <a href="/wiki/index.php/VPS:Main_page" title="VPS:Main page">Virtual Private Servers</a>
</li><li class="sub"> <a href="/wiki/index.php?title=Reseller:Main_page&action=edit" class="new" title="Reseller:Main page">Reseller Hosting Accounts</a>
</li><li class="sub"> <a href="/wiki/index.php?title=Shared:Main_page&action=edit" class="new" title="Shared:Main page">Shared Hosting Accounts</a>
</li></ul>
ndndixie
08-15-2005, 08:20 PM
Oh and take Frontpage............drive to the nearest river..........toss that puppy in cuz it's the cause of 99% of the problems. It and Nightmare Weaver both create enough garbage code to fill NYC!
Robert
08-15-2005, 08:56 PM
Don't talk bad about my Dreamweaver. /me covers it's ears
Blasphemy! Blasphemy I say!
ndndixie
08-15-2005, 09:10 PM
Come away from the darkside Robert! Come back to clean code and the right side of life!
Oh, BTW, it's inserting special characters instead of symbols. Either the wiki isn't reading the code right or *cough* the editor is adding garbage.
charles
08-16-2005, 02:35 AM
Dreamweaver? Is that something you wipe vi off with when it gets hot and sweaty from overuse?
Dreamweaver pssh fake coder haha jk I use Rapid PHP and Notepad (:
Norm1322
08-16-2005, 11:44 AM
For navigation links here is a simple page. :eek:
At least it gave me a nosebleed!!! But it might lead somewhere!
http://meta.wikimedia.org/wiki/MediaWiki_FAQ#How_do_I_change_the_contents_of_the_ navigation_toolbar.3F
Mind you the page I found this link on:-
http://meta.wikimedia.org/wiki/Navigation
Doesn't instill confidence when it says...
Editing the Navigation Bar is a fairly difficult task, compounded by bugs in different versions of WikiMedia. It would be great if someone could create, or link to, a detailed and reliable tutorial on how to do it!
Might as well be in Chinese for me!
--
Norm
ozgreg
08-16-2005, 06:23 PM
Actually the best way is to use the monobook hack and have the menu freely editable via MediaWiki:MenuNavigation
http://meta.wikimedia.org/wiki/MediaWiki_FAQ
charles
08-17-2005, 03:28 AM
I'll have to give that one a try. I read that the other day - not sure why I glossed over it.
I won't have time to do this for the next week or so, but will get to it eventually.
charles
ozgreg
08-17-2005, 05:49 AM
BTW did you notice the next topic down in the FAQ? -> How do I create a small wiki farm?
*Grins Evilly*
charles
08-29-2005, 08:51 PM
Actually the best way is to use the monobook hack and have the menu freely editable via MediaWiki:MenuNavigation
http://meta.wikimedia.org/wiki/MediaWiki_FAQ
The root problem with both approaches appears to be that I cannot edit pages in the MediaWiki name space.
For the first aproach I added
$wgUseDatabaseMessages = true;
$wgNavigationLinks = array (
array( 'text'=>'mainpage', 'href'=>'mainpage' ),
array( 'text'=>'dedicated', 'href'=>'dedicated-url' ),
array( 'text'=>'vps', 'href'=>'vps-url' ),
array( 'text'=>'reseller', 'href'=>'reseller-url' ),
array( 'text'=>'shared', 'href'=>'shared-url' ),
array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
array( 'text'=>'randompage', 'href'=>'randompage-url' ),
array( 'text'=>'help', 'href'=>'helppage' ),
array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
);
To LocalSettings.php and created
http://www.deftechgroup.com/wiki/index.php/MediaWiki:Dedicated
http://www.deftechgroup.com/wiki/index.php/MediaWiki:Dedicated-url
etc.
For the second approach, I added the following page:
http://www.deftechgroup.com/wiki/index.php/MediaWiki:MenuNavigation
And applied the MonoBook hack.
Both can be seen at
http://www.deftechgroup.com/wiki/
None of my pages show up on either
http://www.deftechgroup.com/wiki/index.php/Special:Allmessages
which I sort of expected they would have.
Any ideas before I ditch MediaWiki?
charles
ozgreg
08-30-2005, 03:40 AM
Your skins/Monobook.php should look like ...
<h5><?php $this->msg('navigation') ?></h5>
<div class="pBody">
<?php $this->msgWiki( 'MenuNavigation' ) ?>
</div>
Your MediaWiki:MenuNavigation should look something like this..
* [[Main_Page|What is WPG2?]]
* [[Plug-in Installation|WPG2 Installation]]
* [[Plug-in Configuration|WPG2 Configuration]]
* [[Plug-in Operation|WPG2 Operation]]
PM me or give me a call I be happy to help out..
charles
08-30-2005, 07:45 AM
Your skins/Monobook.php should look like ...
<h5><?php $this->msg('navigation') ?></h5>
<div class="pBody">
<?php $this->msgWiki( 'MenuNavigation' ) ?>
</div>
It already is (the "And applied the MonoBook hack." below was meant to convey this). It's a trivial change and well documented so I didn't show it (and the links I gave you show that its being called - i included both methods to show you them both in in-action, and both not findong the wiki pages created). If you want to see it in the flesh, Mine is
<div class="portlet" id="p-nav">
<h5><?php $this->msg('navigation') ?></h5>
<div class="pBody">
<?php $this->msgWiki( 'MenuNavigation' ) ?>
</div>
Your MediaWiki:MenuNavigation should look something like this..
* [[Main_Page|What is WPG2?]]
* [[Plug-in Installation|WPG2 Installation]]
* [[Plug-in Configuration|WPG2 Configuration]]
* [[Plug-in Operation|WPG2 Operation]]
PM me or give me a call I be happy to help out..
Yes I gave you links to mine. Please take a look. I dont see anything wrong with either the php changes or the wiki pages I have made. The only thing that looks wrong is that the wiki pages do not appear to actually be in the MediaWiki namespace, or they are not being found.
charles
ozgreg
08-30-2005, 08:00 AM
Ok I can see one issue..
* [[Reseller:Main_page|Reseller Hosting Accounts]]
The : is illegal as media wiki thinks this is part of the mediawiki namespace which is not what you would want to do for your wiki pages..
charles
08-30-2005, 08:11 AM
That was my attempt to use different namespaces for each major section of the site (other wikis will just create new namespaces for you if you use the namespace).
I have removed them, as well as any other occurances in the MediaWiki:navigation-url pages as well just in case.
No change.
charles
ozgreg
08-30-2005, 08:22 AM
Your Menu Navigation page looks odd without editing rights I cannot see any more..
Can you copy it over to say a page called menu so I can see (and edit) its content..
charles
08-30-2005, 08:25 AM
PM me your login and I'll give you sysop. I just can't give you access to the server, but your welcome to poke around the wiki installation all you want.
charles
ozgreg
08-30-2005, 08:25 AM
I created a page called Dummy Menu so you can see what my menu page looks like
http://www.deftechgroup.com/wiki/index.php/Dummy_Menu
charles
08-30-2005, 08:33 AM
I used this on the Menu Navigation page, but there is no difference. I certainly hope it wouldn't be that fragile!
Anyway, this is way OT for this thread, and you have sysop now so lets take this offline. There will be a happy ending, the question still remains if it will include MediaWiki :)
charles
charles
08-30-2005, 01:23 PM
Ok, upgrading to the latest (1.5RC4) solved all these issues.
Thanks Greg!
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.