Change Chroot FTP User Path
Jan 23, 2009
I'm using Plesk on my server and its a pain in the @** to create FTP users. So I found this article on adding chrooted FTP users. I successfully added a user, but would like to change the path now, how can I do this?
View 2 Replies
ADVERTISEMENT
Sep 24, 2014
Where can I define the $PATH in chroot permanent ?
If i use "export PATH=$PATH:/usr/libexec" in the shell - its ok for this session, but in a new Session the modified $PATH-Variable ist reset to:
"echo $PATH"
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
View 1 Replies
View Related
Oct 6, 2009
how to change DocumentRoot path?
like from this:
/public_html-maindomain)
/public_html/domain2
/public_html/domain3
/public_html/domain4
/public_html/domain5
to this:
/public_html/maindomain
/public_html/domain2
/public_html/domain3
/public_html/domain4
/public_html/domain5
View 8 Replies
View Related
Dec 12, 2008
How do I change the path of the Exim log directory? I am using Cpanel/WHM.
View 5 Replies
View Related
Dec 2, 2008
I have Linux server Apache with Tomcat.How can i change DocumentRoot for Tomcat or set default page for Tomcat index.jsp or my.jsp or index.php because i want to use 301 redirection.
So please guide me how can i change default page or change default path.
View 1 Replies
View Related
Sep 11, 2007
I've read everything I can find in google and tried it all but I just can't get Return-Path / Envelope-From to change when using centos+cpanel+exim+php4 it insists on sending as nobody@server.VPShostname.com which several very picky email services will promptly bounce
I've tried the following:
1. inserted the "magical" fifth parameter into mail() on php making it -fuser@example.com
2. double checked php.ini to make sure php is using exim - it is:
sendmail_path/usr/sbin/sendmail -t -i
3. used cpanel's own advanced exim editor to add at the top of the exim conf
trusted_users = nobody
(which i don't like but at this point I'll accept any technique that works)
4. restarted all services, exim, php, apache
5. I even found an obscure reference to /etc/email-addresses which can contain a whitelist so I added the email address there
View 2 Replies
View Related
Nov 5, 2014
I have installed the Wordpress application. The wordpress url is "server.com/wordpress", but I want to change it to something like "server.com/myblog".
In Plesk, the installation path cannot be changed (at least, it is not under "Change Settings").
Changing the Wordpress installation itself is not that difficult (renaming the folder in httpdocs and changing the siteurl and home parameter in the database), however, in Plesk still the old installation path is shown, and the Plesk interface to Wordpress obviously does not work any more.
How can I change the Wordpress installation path in Plesk?
Version Parallels Plesk v12.0.18_build1200140606.15 os_Ubuntu 12.04
OS Ubuntu 12.04.5 LTS
View 1 Replies
View Related
Jul 27, 2008
APache is running under the "nobody" user/group as default in CPanel servers
as a suggestion I should change it to another user/group to improve security!
But in CPanel servers its hard to do that because you must edit some scripts and files to prevent the backing to nobody when running some scripts such
PHP Code:
/scripts/chownpublichtmls/scripts/enablefileprotect
or when create a new account
Some sites says "the secret of changing the user/group is in the UID/GID of nobody < 100 !"
so I found a solution :
1 - delete the user/goup nobody
2 - recreate it with GID/UID > 30000
3 - run /scripts/chownpublichtmls
so the question is that solution improve security or i should change the user/group to another one! like "www"?
View 3 Replies
View Related
Jun 8, 2005
Anyone know the commands to change a MySQL user's password via ssh?
I found stuff for changing the root password, and tried to adapt it for the user, but it didn't work.
View 12 Replies
View Related
Jul 2, 2014
I believe the product we are using is Parallels Operations Automation.
We have a customer that we want to be able to give the right to unlock user accounts. The only way to do this seems to be to enable "Billing" as one of the privileges. Unfortunately this gives them more access than we really want to. Is there some trick we can use to give this user only these rights?
View 2 Replies
View Related
Jan 19, 2015
We have a website under httpdocs/. We can change/delete files with a ftp user : "ftpold". All is ok. We must create another ftp access for another company which can access only to httpdocs directory (not to logs/, error_docs/...).
So we have create a ftp access in Plesk. But with this ftp connexion, we can not update/delete files ou update rights.
So we decide to change rights on the files/directories under httpdocs with the new ftp access :
httpdocs# chown -R ftpnewsacln *
The is no errors but the files:directories are always with the old ftp user :
httpdocs# ls -l
ftpold psacln ... libs/
ftpold pscln ... index.php
Why ? How can i create another ftp access ?
View 3 Replies
View Related
Mar 31, 2015
I try to change a mysql user password, but I get an error message:
Fehler: attribute name is invalid: status
Search for related Knowledge Base articles
I'm running12.0.18 Update Nr. 39
View 1 Replies
View Related
Mar 20, 2014
I have a Customer with 22 subscriptions associated. Can I assign some of these subscriptions to another customer?
View 2 Replies
View Related
Nov 20, 2014
It's possible to change the main plesk user "admin" I would chenge the "name" only because chrome make me crazy with password stored
How can I change from panel or from everywhere the "admin" username without any problem of course in the plesk functionality
View 4 Replies
View Related
Jul 28, 2014
I changed the Administrator view to Power User. How to change back?
View 5 Replies
View Related
Oct 12, 2009
It has been a long time since I setup named, and I need some help as I'm just not getting it this time around. I'm running named on CentOS under Chroot
IP Space is; 216.201.80.96/28
Gateway is 216.201.80.97
Netmask is 255.255.255.240
Useable IP Space is 216.201.80.100 - 110
named.conf
---
key "rndckey" {
algorithm hmac-md5;
// secret is xx'ed out for this posting
secret "xxxxxxxxxxxxxx";
};
controls {
inet 127.0.0.1 allow { 127.0.0.1; } keys { "rndckey"; };
inet 216.201.80.101 allow { 216.201.80.101; } keys { "rndckey"; };
};
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
recursion yes;
allow-recursion {
127.0.0.1;
216.201.80.101;
};
listen-on {
127.0.0.1;
216.201.80.101;
};
query-source address * port 53;
version "REFUSED";
allow-query {
127.0.0.1;
216.201.80.101;
};
};
server 216.201.80.101 {
keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "cheapdatamining.com" IN {
type master;
file "data/cheapdatamining.com.zone";
allow-update { none; };
};
cheapdatamining.com.zone
--------------------------
$TTL 38400
@ IN SOA ns1.cheapdatamining.com. admin.cheapdatamining.com (
2008090335 ; Serial
10800 ; Refresh after 3 hours
3600 ; Retry after 1 hour
604800 ; Expire after 1 week
86400 ) ; Minimum TTL 1 day
cheapdatamining.com.INNS ns1.cheapdatamining.com.
cheapdatamining.com.INNSns2.cheapdatamining.com.
ns1.cheapdatamining.com.IN A 216.201.80.101
ns2.cheapdatamining.com. IN A 216.201.80.102
resolv.conf on server.
--------------
search cheapdatamining.com
nameserver 216.201.80.101
nameserver 216.201.80.102
Got the domain sitting at godaddy with ns1 and ns2 pointing to 216.201.80.101/102
Everything looks good as far as I can see, local nslookup on the loopback is fine, and iptables are good.
View 0 Replies
View Related
Apr 29, 2007
Is anyone using a chroot apache to offer shared hosting, with CGI, PHP etc... all working fine?
View 2 Replies
View Related
Jan 6, 2009
I am trying to configure chroot for my Apache 2.2.8 + PHP 5.2.8 + MySQL 5.0.51 + CentOS 5.1 using the article at: [url]
I have moved most of the files that are required by Apache to run.
I want to move PHP, MySQL also into chroot jail along with Apache.
How can I know the list of files that are needed by my Apache? It is asking for some of the files in the /usr/bin, /lib, /usr/local/lib, /usr/lib folders.
Somehow, I moved most of the files that are required by Apache to the chroot jail and finally I got httpd: bad user name daemon error.
And in CentOS, I don't have the file /etc/passwords and the command pwd_mkdb.
View 0 Replies
View Related
Sep 30, 2014
I have customers that want the git program to be able to pull/push their github repos. I've copied all of the files in the git rpm into the site's chroot but whenever they try to pull down their repo via ssl they get this message:
error: while accessing https://github.com/USERNAME/PROJECT.git/info/refs
fatal: HTTP request failed
We have gotten ssh to work with git but the ssl issue still isn't working.
View 1 Replies
View Related
Apr 7, 2014
I've a problem with the chroot directories under /var/www/vhosts/domainxy.com. The options I've configured is "Access to the server over SSH -> Forbidden", After creating a webspace there are no chroot directories. But if I change the system user username under hosting settings, the directories will be created. But I don't want this, because the option I choosed is "Forbidden" and my customers are irritated about this directories. Can I prevent this behabiour?
View 1 Replies
View Related
Feb 23, 2015
Is there any way for a client to use command line mail in a script. Client has ssh access via chromed environment.
Wants their script to be able to send an email on completion.
plesk 12 on Centos6.6
View 6 Replies
View Related
Sep 30, 2014
After update of some system commands, there is now difference between the system-wide command and the equivalent that is located in the chroot template directory (and the command that is in the domain's bin dir).
Is there a command/utility that can update the commands (and all libraries that they depend on), that we have in our chroot template directory /var/www/vhosts/chroot?
View 2 Replies
View Related
Aug 27, 2014
I am testing out Plesk control panel 12 - looks promising, but the moment I hit chroot-ed environment, many things go wrong.
Set up:
Virutal server, running linux (64 bit Ubuntu 14.04 Server LTS);
Plesk Control Panel 12.0.18, Update #14;
Currently running on a trial license;
Brand new installation on a dedicated server;
I have two disks, one is for system stuff, plus plesk; second disk is supposed to be dedicated to /var and /home
root@testthing:/var/log# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 40G 8.7G 29G 24% /
....
/dev/vdb1 493G 2.9G 465G 1% /disk2
[Code] .....
(to save place, I've removed the regular stuff that is everywhere and makes not difference for this case ... I think)
The plesk installation went just fine; update ran fine; I can register customers, their websites run fine ... as long as they get no shell at all, or regular shell to the server.
BUT: we need to jail all our customers under chroot. If that is not possible, we can't use Plesk.
I created a Service plan cloned form the Default domain plan and changed only to give the users ssh access to the server with a chroot env.
When I try to register a new client with this new service plan, it fails with lots of error messages (one per directory it tries to make), like this:
chrootmng: cannot set permissions for "/var/www/vhosts/demowh1.blah.blah/lib":Too many levels of symbolic links
...
Dropping the GUI and xperimenting in a shell, as root: If I run:
root@testthing:/usr/local/psa/admin/sbin# ./chrootmng --create --source=/var/www/vhosts/chroot/ --target=/var/www/vhosts/demowh1.blah.blah
open_basedir_with_nofollow: opeat failed: `var', Too many levels of symbolic links
[Code] ....
But, if I run it like this:
root@testthing:/usr/local/psa/admin/sbin# ./chrootmng --create --source=/var/www/vhosts/chroot/ --target=/disk2/var/www/vhosts/demowh1.blah.blah
It proceeds to make a copy of all directories where it should.
So, at this point I am pretty sure that the problem is my link between /var and /disk2.
Still, I want to keep the user data on a separate disk from the system/plesk data.
View 4 Replies
View Related
Jul 10, 2009
When a newsletter tool or really any PHP script sends mail from a domain account it says it is from 'nobody@domain.com' on behalf of the sender. if we send from the kensingt account it says it is from 'actualuser@server.domain.com' on behalf od sender. I would like to change this so it says it is from 'no-reply@server.domain.com' on behalf of sender and I have looked through the whm and cpanel settings and cannot find a place to do this.
View 5 Replies
View Related
May 7, 2007
I thought I knew enough about my .htaccess stuff to do this, but I can't seem to work it out. What I want to do is if a user visits domain.com/folder, we check to see if the folder exists. If so, show as normal (IE domain.com/support)
If a user visits domain.com/dynamicusername (dynamicusername is not a physical folder), redirect to dynamicusername.domain.com
View 3 Replies
View Related
Jul 31, 2008
As my clients' needs expand, they're asking for chroot ssh/sftp setup. I'm currently on a dedicated Linux setup but don't really have the time to set up a whole new box with full virtualization or investigate a full chroot solution (baby on the way), and to be honest it would be less hassle to move to a new provider than worry about down time with sites.
What I'm looking for:
- linux hosting
- hosting for 30+ accounts, some with several domains
- at least 6 IP addresses for SSL certs
- each account in a full chroot environment (ssh/sftp/ftp) so they can't poke around each others' files, or each account set up in a virtual machine setup (ie: openvz)
- maildir
- spamassassin
- php 5, mysql, perl 5.8.8
- suexec apache would be nice
View 3 Replies
View Related