<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=Remove_virtfs_and_Disable_for_users</id>
	<title>Remove virtfs and Disable for users - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=Remove_virtfs_and_Disable_for_users"/>
	<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=Remove_virtfs_and_Disable_for_users&amp;action=history"/>
	<updated>2026-04-11T13:56:29Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.webko.net.ua/index.php?title=Remove_virtfs_and_Disable_for_users&amp;diff=201&amp;oldid=prev</id>
		<title>Sol: Новая страница: «Категория:CPanel VirtFS provides a jailed shell environment for users who connect to a server via SSH. The jailed shell acts as a container for the u…»</title>
		<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=Remove_virtfs_and_Disable_for_users&amp;diff=201&amp;oldid=prev"/>
		<updated>2015-07-21T05:58:38Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «&lt;a href=&quot;/index.php?title=%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:CPanel&quot; title=&quot;Категория:CPanel&quot;&gt;Категория:CPanel&lt;/a&gt; VirtFS provides a jailed shell environment for users who connect to a server via SSH. The jailed shell acts as a container for the u…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Категория:CPanel]]&lt;br /&gt;
VirtFS provides a jailed shell environment for users who connect to a server via SSH. The jailed shell acts as a container for the user, and does not allow the user to access other users’ home directories on the server. Unlike a normal shell environment, a jailed shell environment prevents access to data outside of the user’s home directory.&lt;br /&gt;
&lt;br /&gt;
Consuming lot of disk space ?&lt;br /&gt;
&lt;br /&gt;
Most of server got large disk space due to this virtfs. You can Disable VirtFS,Remove VirtFS and Unmount the bind mounts. CPanel provides a script to remove the virtfs mounts. Remove virtfs and Disable for users in your cpanel server&lt;br /&gt;
&lt;br /&gt;
'''Do not delete /home/virtfs/username folder directly because its hard link with user account.'''&lt;br /&gt;
&lt;br /&gt;
To disable VirtFS, system administrators can disable jailed shell access through WHM’s Tweak Settings interface (Home &amp;gt;&amp;gt; Server Configuration &amp;gt;&amp;gt; Tweak Settings) and Manage Shell Access interface for that cpanel user account WHM &amp;gt;&amp;gt; Account Functions &amp;gt;&amp;gt; Manage Shell Access.&lt;br /&gt;
&lt;br /&gt;
Then use the following commands whether its still available.&lt;br /&gt;
 # grep username /etc/passwd&lt;br /&gt;
If it does, you’ll need to change it to Bash or any other shell.&lt;br /&gt;
&lt;br /&gt;
 # crontab -l -u username&lt;br /&gt;
If you notice ''SHELL=”/usr/local/cpanel/bin/jailshell”'' in the output, you’ll need to edit user’s crontab and delete that line.&lt;br /&gt;
&lt;br /&gt;
 #w | grep -i username&lt;br /&gt;
If it is, you should inform him to log out or, if you feel like it, you can log him out by yourself.&lt;br /&gt;
You can unmount all active VirtFS mounts&lt;br /&gt;
 #/scripts/clear_orphaned_virtfs_mounts –clearall&lt;br /&gt;
You can verify mount point for particular account&lt;br /&gt;
&lt;br /&gt;
 #grep -i username /proc/mounts&lt;br /&gt;
you will some thing like this&lt;br /&gt;
&lt;br /&gt;
 root@cpanel# cat /proc/mounts | grep username&lt;br /&gt;
 /dev/xvda1 /home/virtfs/username/lib ext3 ro,nosuid,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0&lt;br /&gt;
 /dev/xvda1 /home/virtfs/username/bin ext3 ro,nosuid,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0&lt;br /&gt;
 /dev/loop0 /home/virtfs/username/var/tmp ext3 rw,nosuid,noexec,relatime,errors=continue,barrier=1,data=ordered 0 0&lt;br /&gt;
 devtmpfs /home/virtfs/username/dev devtmpfs rw,nosuid,noexec,relatime,size=1002360k,nr_inodes=250590,mode=755 0 0&lt;br /&gt;
 /dev/xvda1 /home/virtfs/username/usr/sbin ext3 ro,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0&lt;br /&gt;
 /dev/xvda1 /home/virtfs/username/home/username ext3 rw,noatime,errors=continue,user_xattr,acl,barrier=0,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0&lt;br /&gt;
&lt;br /&gt;
then you should unmount and then remove it&lt;br /&gt;
&lt;br /&gt;
 #/scripts/clear_orphaned_virtfs_mounts&lt;br /&gt;
&lt;br /&gt;
 #for i in `cat /proc/mounts | grep /home/virtfs | cut -d ' ' -f 2 ` ; do umount $i ; done&lt;/div&gt;</summary>
		<author><name>Sol</name></author>
	</entry>
</feed>