Added an extra ftp account under the sub domain hosting works fine. However, we want to delete a ftp account when attempting to delete the subdomain folder.
In addition, attempting to delete the folder where the. What can we do to protect the folder?
# virtualmin create-user --domain domain.com --user example --pass password --ftp --noemail --no-creation-mail --home /home/domain.com/domains
User example.domain.com created successfully
# virtualmin delete-user --domain domain.com --user example
rm: cannot remove `/home/domain.com/domains/blog.domain.com/fcgi-bin/php5.fcgi': Operation not permitted
rm: cannot remove `/home/domain.com/domains/sub.domain.com/fcgi-bin/php5.fcgi': Operation not permitted
rm: cannot remove `/home/domain.com/domains/sub1.domain.com/fcgi-bin/php5.fcgi': Operation not permitted
rm: cannot remove `/home/domain.com/domains/sub2.domain.com/fcgi-bin/php5.fcgi': Operation not permitted
rm: cannot remove `/home/domain.com/domains/sub3.domain.com/fcgi-bin/php5.fcgi': Operation not permitted
User example.domain.com deleted successfully
# ls -lah /home/domain.com/domains/blog.domain.com/
total 12K
drwxr-xr-x 3 domain.com domain.com 4.0K Jan 26 15:50 .
drwxr-xr-x 7 domain.com domain.com 4.0K Jan 26 15:50 ..
drwxr-xr-x 2 domain.com domain.com 4.0K Jan 26 13:07 fcgi-bin
Howdy,
It sounds like what you may want to create is a "web access ftp user".
In the Virtualmin GUI, you'd go into Edit Users -> Add a website FTP access user.
From the command line tools, you can do that by passing in the --web flag to the "create-user" command.
More details on that are here:
http://www.virtualmin.com/documentation/developer/cli/create_user
When you have a user like that, it won't attempt to remove the homedir when deleting the user.
Would that do what you're after?
-Eric
Hi Eric
the error I get from the command line via the web to try and inform you the mystical.
Extra on the ftp command is the following. https://ipaddress:10000/virtual-server/remote.cgi?program=create-user&do...
consists of the following command, but vitualmin "edit user" does not appear in the. ftp account in / etc / passwd and / etc / shadow
https://ipaddress:10000/virtual-server/remote.cgi?program=delete-user&do...
When we tried to delete with the following command, the user does not get error. but the / etc / passwd and / etc / shadow files seems that in.
In addition, we delete name of the domain completely, virtualmin, although not in the ftp user in / etc / passwd and / etc / shadow files, deleting of.
Operating system Debian Linux 6.0 Virtualmin version 3.89.gpl GPL Webmin version 1.570