Limiting Ssh User To Specific Folder

Jun 23, 2009

I may have this wrong, but I think it's possible. I have a friend who wants to run a process on one of my servers, now I don't particularly 'care' about this server, it's just used for a couple of unimportant things so I'm okay with him running it, but I don't want the hassle of sorting out things if he decides to delete everything, so I'm hoping it's possible to limit his directory.

For example, I have the folder "people" in the top most directory, inside that I have "arthur", I want to limit the ssh user "arthur" to the folder "arthur", I don't want him to be able to cd ../../ and delete stuff, is this possible?

View 3 Replies


ADVERTISEMENT

Limiting User Activity

Jul 29, 2007

I am interested in setup user activity limits to avoid peaks on the server load, I have readen a lot about PAM and limits.conf but still have no idea on how set this limits. Most of the examples are similar to this page http://www.seifried.org/lasg/users/ but they are still confusing to me

>> I would like to setup rules like this:

Customers may not use more than 2% CPU daily, 3% memory daily, run more than 10 simultaneous processes per user, allow any process to run for longer than 30 CPU seconds, run any process that consumes more than 20% of available CPU at any time, or run any process that consumes more than 16 MB of memory.

View 6 Replies View Related

CPanel - Limiting IO Mem CPU Per User? Hostgator Like

Nov 16, 2008

I was reading up a thread where hostgator cpanel servers seem to be limiting IO activity per user/account/domain. How can that be achieved?

Any special limitations on a per account basis that I am not aware of?

View 1 Replies View Related

Limiting Cpu/memory Of A Single User/domain In Whm

Jan 21, 2008

i've been researching this but can't seem to find a decent solution.

basically trying to limit the cpu usage of a single domain, or limit accesses per hour if that's possible?

i tried adding an entry in /etc/security/limits.conf which restricts numproc to 2 and then down to 1, but it doens't seem to make any impact on the load. load of the server drops from about 1.5-2 down to 0.02 when this single site is suspended, and i can't have it run wild.

ideally would like a message that says something along the lines of server is too busy... trying again in 5 seconds or something along those lines?

View 5 Replies View Related

Redirect Domain/user To User.domain ONLY IF Folder 'user' Doesn't Exist

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

Forwarding Mail To A Specific Folder?

Jun 14, 2008

Is it possible to create an email forwarder that will forward to a specific folder?

For instance, an email to "anemail@domain.com" will forward to a folder 'fold1' of "realemail@domain.com".

Alternatively, is it possible to forward but with adding additional headers, such that I can then create a filter to place emails with that header in a specific mail folder?

View 2 Replies View Related

How Can I Restrict User Specific CPU Usages

Nov 18, 2008

How can i restrict my user that always taking high CPU usages..i have linux server with shared hosting and most of the time i suffer that some user takes 10% of our server CPU so that i want to restrict those take high cpu usages..

View 6 Replies View Related

MySQL Anyway To Log Queries Of Specific User

Jun 5, 2007

I know about the general log but want to just log queries of a specific user. Our database does 400 queries/s on a slow day, so I think it would be a pain to grep though a huge log like that. And, im not sure if it would cause any preformance issues.

View 0 Replies View Related

Apache :: How To Detect Where User Has Come From A Specific Website

Nov 1, 2013

configure Apache server to handle users requests using condition based on where he come from so i can redirect him . what i need if user came with from site start with xn--* redirect him to virtual host and if he came from any other link then go to another virtual host

View 2 Replies View Related

Mysql Disable INSERT Access To Specific User/table

Apr 26, 2009

How can I disable INSERT access to specific table.

The user should have full access the the DB except insert to specific table.

The tables_priv allow to set what enable and not what disable.

I'm using mysql v5

View 4 Replies View Related

FTP. Assign A User To A Folder.

Jul 6, 2007

finally after spending all night getting proftpd working correctly on a new test box.

im struggerling with ftp folder permissions though.

could somone tell me or show me how to allocate a user to a certain folder....

for example ive added the username apple to ftp and when user apple logs in I want him to see the apple folder as his home folder and access to everything in apple.

i thought it was... useradd -h /home/userarea/apple apple but it doesnt seem to work.

View 4 Replies View Related

Over-riding The User/password Of A Folder

Nov 6, 2008

I have a website where a directory is user/password protect and i want not to be prompted for the user/password when coming from a certian ip (workplace).

how would i code it?

I am guesting to use the "Satisfy directive"?

View 2 Replies View Related

Plesk 12.x / Linux :: Restrict SSH User To One Folder?

May 15, 2015

I need to create a SSH account for an subscription. This account is not allowed to access other domains. How do i do that?

I know how to create an SSH account with remote access.

View 1 Replies View Related

How To Create A Subfolder In My Domain And Assign An Ftp User To That Folder

Jun 30, 2009

I need to create a subfolder under my domain name, and assign an ftp user to that folder. I want the user to only have access to that folder, is it possible? can you guys orient me, because I have no idea where to start, my hosting service provider is telling me I can only have one ftp account per domain, maybe I didn't explain correctly to my hosting provider.

View 1 Replies View Related

Plesk 12.x / Linux :: Mail Folder Accessible To Each User

Nov 26, 2014

I would like my Plesk users to each have access to the mail folder for their domain. cPanel appears to do this by default by creating a folder named /home/user/mail which contains a subfolder for each domain name. Plesk, however, places all email folders together in the /var/qmail/mailnames folder. I would like to end up with a structure similar to how cPanel does it, but it looks like there are at least a couple of ways to accomplish that and I'm not sure what would be the most safe, reliable way to do it.

One way I can think to do it would be to override the Plesk dovecot config by adding a new config file to /etc/dovecot/conf.d. I think changing the values for mail_home and mail_location as follows would possibly work.

Old values:
mail_home = /var/qmail/mailnames/%Ld/%Ln
mail_location = maildir:/var/qmail/mailnames/%Ld/%Ln/Maildir​

New values:
mail_home = /var/www/vhosts/%Ld/mail/%Ld/%Ln
mail_location = maildir:/var/www/vhosts/%Ld/mail/%Ld/%LnMaildir​

I see a potential issue with this solution; the %Ld for an add-on domain will probably be the add-on domain, and there will not be a folder within /vhosts/ with that name. Perhaps there is another variable for the primary domain that I could use there.

A second way I can think to do it would be to add a symlink in /var/www/vhosts/domain/ named "mail" that points to the actual mail folder for a domain. Again, issues would probably occur here with add-on domains, and I also can't see a way to automate this. I also predict permissions issues with this solution.

I am using Dovecot if that makes a difference.

View 3 Replies View Related

Webmin Creating Folder/user With Space And Bandwidth Quota

Jun 14, 2008

how can i create directories in my (public_html / htdocs folder) that have disk space and traffic quota?

i activated the disk quota to the native linux file system and i tried to create a user but i could not put this user in any folder in the public_html (i dont know how to do this) also there is no option to create bandwidth quota..

one more detail is that the folders need to be protected with login and password because people may try to enter this folders (e.g. www.mydomain.com/protectedfolder)

all this using webmin or another free good script.

View 4 Replies View Related

Apache :: How To Redirect Specific Useragent On Specific URLs

May 20, 2015

I have question: How to redirect specific useragent on specific URLs to specific URLs in .htaccess [Question]

E.g.:

I want to redirect 301 with conditional:

Code:
useragent: Firefox
from my url1: domain[dot]com/old-url1/
from my url2: domain[dot]com/old-url2/

to

Code:
to new url1: in my url1: domain[dot]com/new-url1/
to new url2: in my url1: domain[dot]com/new-url2/

I create this in my .htaccess but not work

Code:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} googlebot [NC]
RewriteRule ^/?this-is-url/?$ domain[dot]com [L,R,NC]

View 1 Replies View Related

VPS W/ No Limiting Tunnel Cap

Oct 6, 2009

I have a vps at VPSVille, which I use for tunneling out onto the internet (behind a nazi firewall). Unfortunately, my vps keeps getting disabled because I cross the "20GB of traffic per month" allowed to any vps for tunneling - even though I have 300 GBs of bandwidth.

I'm now looking for another cheap vps host ($20/mo or less) that will let me utilize all the bandwidth I paid for.

View 6 Replies View Related

Limiting Inodes

Oct 8, 2007

I am just playing around with a server of mine, and I wanted to know is there anyway to limit the amount of inodes ( files and folders) a user can have? I am using cpanel/whm. Or is there a way I can receive an " alert" once a user has reached the specified limit?

View 3 Replies View Related

Limiting SSH Access

Apr 15, 2007

I've recently hired a new server with the aim of offering FTP backups.

I have Plesk CP but I don't want to use that to create the accounts for these users - i want to use the Plesk license for webhosting customers.

My box is running CentOS with ProFTPd.

The problem i'm having, is locking down SSH access to the Backup customers - if i add an account using "useradd", it is enabled in ProFTPd as I want, and I have set ProFTPd to only allow access to their home dir. However, the users can still log in via SSH and have full access to the box. Ideally, I want to be able to remove these users from SSH access, or if that's not easily possible, not allow them to "cd" above their home dir.

I know it's possible to add their usernames to the SSHd config file under Deny, but is there a more elegant solution (bearing in mind i'm planning to have quite a few of these users)?

View 4 Replies View Related

Bandwidth Limiting

Nov 10, 2007

bandwidth limiting on my home network, to some specified pc's, as they are taking up to much download bandwidth. Im leaning towards windows more but i am still unsure, would any one be able to guide me or give me a few tips on what type of program will do this, what operating system and maybe some tutorials if anyone knows any good ones?

View 6 Replies View Related

IP Limiting On A Switch

Apr 4, 2007

IP limiting on switch port.

Where a switch is set to only allow a specific IPs to be streamed from the servers connected to it.

Any server set with another IP even with a same C class range will be dropped or ignored.

eg.
Switch : with a set IP of 111.111.111.1 - 10
Any server that tries to set an IP of 111.111.111.11 and above will not get connected.

Currently I am using 3com SuperStack III 3250 switches. but after reading the manual and also searching on the net, I am a little lost on ideas....

View 8 Replies View Related

/tmp Folder 777 ... Use As Sessions Folder... Secure

Aug 14, 2007

On my VPS I would like to set the /tmp folder to 777 and point to it with session.save_path.

The VPS will host a number of sites, but I will have sole control of them. ie. the account holders will not have access to cpanel.

If it makes any difference, the server is running phpSUexec.

What are the risks involved with this?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved