CentOS 5 :: Set Just The Homedir As SFTP Directory?
Sep 22, 2011is it possible to set just the homedir as SFTP Directory? The user shouldn't be able to go anywhere else. And is that possible in combination with denying ssh access?
View 3 Repliesis it possible to set just the homedir as SFTP Directory? The user shouldn't be able to go anywhere else. And is that possible in combination with denying ssh access?
View 3 RepliesI followed these steps to add a client to my active directory domain, everything is working as expected except that when a username has whitespace it creates a directory in /home with whitespace and gconf fail to access his config dir in the user's home. KDE also fails to start but I don't know what's failing yet. I found that the easiest way to fix these issues is to replace whitespaces by underline in homepaths so I changed the pam_mkhomedir source to replace the whitespaces and save it using the usermod command. It should work but is not... the reason is that I can't change the user data using the usermod because domain users are not in /etc/passwd.
View 5 Replies View RelatedI mean dir other than home dir.How do I do that
View 6 Replies View RelatedI have an ftp server and normal login works fine as well as ftps but for some reason sftp sends all my accounts to the root directory of the entire server (not good). Been searching around but can't find a fix.
View 6 Replies View Relatedi want to allow some friends to ssh/sftp/scp into my system but i only want them to have access to my external hard drive (/media/externalHD/), and i dont want them to be able to delete or add anything, only download.i have found instructions on how to limit a user to his/her home directory and thought about just creating a user with the home directory /media/externalHD but idk if this will work and im afraid i might make a mistake and delete 800gb of 'files'
View 2 Replies View RelatedUsing CentOS 5.5. I have a handful of users that I need to have connect to my server via sftp and start in the same directory. for example, user1, user2, user3, etc.. will connect via sftp and upon connection will all be in the /some/dir/path/ftp-root directory.I know one way is to create these users all with the same 'home' directory, since by default a user starts in their home directory when connecting via sftp, but before just doing that, I wanted to find out if that is really the appropriate method to use? alternatives? Is there some setting on the sftp server end that could direct all users to one starting directory so that these users don't have to have the same 'home' dir? I'm using the sshd daemon that comes with CentOS 5.5 (with all current updates/patches)
View 4 Replies View RelatedI see this questioned asked a lot and figured this tutorialThis tutorial explains how to create an SFTP server which confines (or chroot) users to their own home directory and deny them shell access.
View 1 Replies View RelatedI'm trying to make it so that when a user logs in they are forced to stay within a certain directory structure. For some reason what I am doing is not working properly.Here are the relevant file informations:sshd_config:
Code:
Port 2238
Subsystem sftp internal-sftp
[code]...
I am using Mandriva 8 as my local server, i want to configure sftp sever by which particular user can access particular directory of our local server by using ftp client, can anyone tell me how can i do it?
View 1 Replies View RelatedIn RedHat 4/5 How can i jail/restrict an sftp user to his home directory?
Can i do this without using rssh ?
I've created a mysql user and he can connect Joomla to mysqld when everyone has full permissions to the mysql homedir but I know this is bad from a security standpoint. If I set mysql user as the only one with permissions then I can't connect. I know Joomla support is not very help from past experience, wish I could dump it for something else but it does work great once it is configured so I need to keep it around, can anyone make a guess as to what permissions I need to have set on mysql's home dir so that joomla can still connect yet I am more secure than now?
View 11 Replies View Relatedi have a vsftpd server running well but i want to make/force all users to use sftp and not just ftp is this possible?
View 1 Replies View RelatedI just updated my CentOS 5 installation to 5.2 using yum update command.
But soon after restart, I can't use FTP anymore.
I tried SFTP but it always ended with "out of memory" message.
And last way, I tried to uninstall ftp and replace it with vsftp but still cannot solved.
Now I don't know how to upload my files to this server :(
Is it possible to limit each user so that only one can connect via each username for ssh/sftp? I work with a small company where there aren't really enough of us to justify using a revision control system, but we don't want to accidentally step on each other's toes, so we'd like to try simply preventing more than one person from accessing a given domain at once.
View 15 Replies View RelatedI set up my vsftpd server, but when using "sftp servername" it's not using vsftpd but another (what seems like) built-in sftp server. Even when I stop the vsftpd service I am still able to get a prompt to log in. I haven't installed any other ftp servers.
View 2 Replies View RelatedI cant seem to find any new good working How to setup SFTP from scratch. Im running CentOS 5.4
View 2 Replies View RelatedI have configured rssh 2.3 with openssh 5.8 on RHEL 5.6 64 bit to restrict the users to scp and sftp. When i try to sftp or scp it gives error connection closed. After long googling tried different solutions like add missing libraries, setuid to rssh_helper. I had full copy of /lib to /chroot/lib and /chroot/lib64 but no success. conf and log files are below for reference.
[Code]...
As a Windows user, I generated a pair of DSA keys from CoreFTP Lite and sent it to a third party that runs an SFTP server. They told me that a valid DSA key needs to have ssh-dsa at the start and the username@systemname at the end. CoreFTP generated neither the ssh-dsa header nor the username@systemname footer. I tried with WinSCP and it didn't generate them either. Is there a difference between how SFTP works between Windows and Linux? If I put a useraccount@systemname at the end of the text will it work? How would the Linux system validate that my system is called "systemname"? If it can't validate, what is the purpose of adding it?
View 2 Replies View RelatedI am running 5.4 64 bit I am trying to connect via ssh on a laptop running Ubuntu. I receiving this error. Cannot display locations "sftp://10.66.77.201" Host key verification failed I searched around the web and some say that I should have a .ssh folder but I don't see one under the home folder. I re-installed ssh but I am still having problems.
View 2 Replies View RelatedI've been administrating a dedicated Linux CentOS 5 (Linux 2.6.26.5-rootserver-20080917a) server for around 2 years, and although not a network or Linux expert, been learning to configure as need arises. Primarily using Plesk for day-to-day, but occasionally using Putty to SSH into server.
For all the time I've had the server, I've been connecting to my server via sFTP using "root" password. ( Although, I know this is really bad practice, I assume made safer by connecting with SSH FTP)
After spending another normal day in the office developing websites, connecting to my server as root using SFTP in Filezilla AND Dreamweaver I left for the night.
Returned next morning, after having done no manual updates or amends to my server; I could no longer SFTP into my server?
Thought it may be related to my office network, so tried it from home over the weekend, same result; can no longer connect SFTP for root?
I can connect to the server via Putty using my "root" username and password.
After spending hours looking on the internet for a solution, I'm lost for ideas as I didn't make any changes?
What happens when I open my Filezilla and try connecting as SFTP is it states:
Error:Connection timed out
Error:Could not connect to server
I checked server log /var/log/secure and it states:
Accepted password for root from UNKNOWN port 49212 ssh2
Apr 9 07:41:41 s15320264 sshd[7122]: fatal: Write failed: Connection reset by peer
Odd part is, it's worked fine for weeks, months without ever failing to connect?
Also, notice that Putty connection seems to take much longer to authenticate root user than it used to?
Checked via Plesk Health Monitoring and all CPU, Memory and Disk Levels are well below any alarm levels.
I have run all Plesk updates to 10.2.0 in the hope that it resolved it, but to no avail.
Running CentOS release 5.4
We currently run a web server that allows FTP connections. I want to:
1. Disable FTP on our web server and require sftp only.
2. See if we can create a table of sites that are allowed to connect to the web server using sftp. Or should I just do this at the firewall?
Is there any way to setup the Centos Directory Server without an internet connection?? i tried using the command: yum install centos-ds
but this just tries to connect to the internet to to download the packages. Is there a site where i can find the package so that i can copy it to my server and install it or is there some other way to do this?
Although there are code...
what should I do ?
Im new in centos community and i just installed it.I installed it through the virtualbox and without X server so i im running only with console. I have problem with ssh keygen. When i generated a keygen i get two files: keygen and keygen.pub. Tutorials telling me that i have to rename keygen.pub to "authorized_keys" and copy it to /root/.ssh. But when im trying cd to /root/.ssh then i get the error: no such file or directory, even "whereis" don't know where is this folder.
View 1 Replies View RelatedMy boss has commissioned me with creating a new file server to replace a M$ server that is installed now. We want to go with Linux for many reasons, but one big thing we want to be able to do is still manage permissions using M$ type permissions from our XP desktop's rather than unix style permissions. How would this be accomplished on a CentOS box?
View 1 Replies View RelatedI am quite new to linux so pleas be understanding :) Here's my problem:
I have a server: A with some directory dirA/ I want to have an access to that directory on server B.
I was reading about "mount" but its very ambiguous for me.
We have a problem where there is not enough space in our /tmp partition. We are trying for fix our mysql database, and keep running in to the space issue... the error we are getting says:
myisamchk: Disk is full writing '/tmp/STGL3SGd' (Errcode: 28). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)
Our /tmp partition is current set at 485M, but it is not large enough to handle the database fix...
Does anyone know of a work around - perhaps to assign different directory for the temp files?
I have a freshly installed CentOS 5.4 box which I'm trying to get AD authentication working on. I have AD authentication via kerberos working for SSH, but when I try and have it work for SMB shares I'm getting an access denied error. What's even more odd is that when I tell pam to use winbind to authenticate SSH...it works just fine. Wbinfo -a username%password authenticates fine and getent passwd and group enumerates the AD users and groups ok. My smbd.log was throwing the following error "Failed to verify incoming ticket with error NT_STATUS_LOGON_FAILURE" but has since stopped for some reason, but googling this indicated I needed re-join the machine to the domain, which I have.
View 3 Replies View Relatedsecond day ever using command line so bare with me. I setup a cloud server through rackspace hosting..I installed vsFTPd and made a user and password and set the home directory to /var/www for this user When I try connecting via FileZilla, I get this error
Response:220 (vsFTPd 2.0.5)
Command:USER arms2o10UseR
Response:331 Please specify the password.
Command:PASS **************
Response:500 OOPS: cannot change directory:/var/www/
I have been looking at all different forums and have tried multiple things like through selinux, chowning etc..
1. I have two domains domain1.com and domain2.com on my centos server.
2. In a file in domain1.com I am writing the php function
chdir('/var/www/vhosts/domain2.com/httpdocs'); but it is not working at the same time if I am trying to change the directory to one of the subdirectory in domain1.com than it is working means chdir('/var/www/vhosts/domain1.com/httpdocs/css'); is working.
3. The problem is I cant able to change the directory from domain1.com to domain2.com. /var/www/vhosts/domain1.com/httpdocs => /var/www/vhosts/domain2.com/httpdocs is not working
Is it some permission issue or anything else ? Is it something related to chroot jail or what?