UBUNTU: ftp-server cannot change directory when user logs in
I have set up a FTP-server (vsftpd) for only one client user (ftuser). This user should have access to the folder /srv/webroot/user. The folder /srv and all subfolders are owned by me. I am not in the same group like the ftpuser is. Now I have tried to implement the user’s permission in the following way: chmod 770 -R /srv chmod 777 -R /srv/webroot/user But when the user tries to login via ftp the FTP-server [...]
Continue Reading »Do /usr/local and /usr/local/bin need to be group-writable? If so, why?
While it’s possible that it’s a fluke of a package I installed or the VPS image, it appears that /usr/local and /usr/local/bin (both of which are owned by root:staff) are group-writable by default on Debian Squeeze. Is there a reason that they need to be? Asked by Isaac it appears that /usr/local and /usr/local/bin (both of which are owned by root:staff) are group-writable by default on Debian Squeeze. This is, at present, by design, you [...]
Continue Reading »Permission denied for symlink to executable in nfs mounted directory with the sticky bit enabled
We have an NFS export for any of our users to install and maintain useful software for the network mounted at /public on our clients. On the NFS server, this directory is world writable with the sticky bit set(like /tmp). One of the users of this service has a symbolic link in /public to an executable file. Since we upgraded our workstations from Ubuntu 9.04 to 10.10, we get permission denied when we try to [...]
Continue Reading »Is it possible to hide folders/subfolders from users based on permissions?
Having a Windows Server 2008 R2 that has a share with lots of nested folders, I want to be able to only show certain folders to certain AD users/AD user groups. Is it possible to configure the permissions on single folders, so that clients that connect with Windows XP/Windows 7 to the share on the Windows 2008 R2 server only see those folders for which they have “view” permission? Other clients should not see the [...]
Continue Reading »How to secure a group of *nix users to a single directory and it’s subdirectories?
We’re setting up a CentOS 6.2/ Apache web server with higher security requirements than I’m used to. I’ve set up a user group called “web” and I want to limit it’s members to only being able to read, write and execute in /var/www/html/ and subdirectories. Members of the “web” group should not be able to access any other part of the server (although individual user home directories are fine). I thought this would be straight [...]
Continue Reading »Octal representation of file/folder permissions using awk?
We have various of machines here with all sorts of hardware and Operating Systems, most of them do regular tasks with bash that an agent executes. However it came to my attention that some Solaris machines we own do not have stat util, and adding it would be a problem that might take time (ironic) Meanwhile I was trying to imitate one sisyphean task which stat did in a magnificent way: return the file permissions [...]
Continue Reading »A network share folder is invisible to users
I have a network share folder that I was recently cleaning up permissions to. I took off the four individual names from the access permissions to the folder, and added a new security group (Universal) with standard Read/Write permissions to that folder, then added those 4 people to the group. However… now nobody can see the folder. The users can see the other 9 folders in that shared drive, but the 10th is missing. I [...]
Continue Reading »Cannot read/write FTP directory vsftpd on centos 6.0 (empty folder)
I have Centos 6.0 and installed vsftp with YUM, I added a user with Webmin panel, set its home dir to “/var/www/html” and its shell to “/bin/sh”, user id is 500, user group is same as name: “adrian_ftp”. When I start a ftp program it logs in but the remote folder always shows empty. I set directory owner and group to adrian_ftp:adrian_ftp , no change, I also made them 0777, no change. Any ideas? I [...]
Continue Reading »A bunch of questions of permissions with a web server (Cherokee)
I’m new with Linux administration and I’m configuring a Cherokee Web Server. I’m using Archlinux so I have a http user that owns /srv/http. On the other hand I have a user called ‘jesus’ that is inside the http group. Cherokee is working with user and group http (http:http) So I made some changes to /srv/http. I added permissions to the group to write there and I changed the owner and group like: drwxrwxr-x 3 [...]
Continue Reading »Apache2 – How to setup the directory permissions of website folder?
I’m using a CentOS for serving PHP webpages. I have various websites inside “/svr/www”… My problem is that I created folders like: /svr/www/website1.com /svr/www/website2.com And this folders have as owner “root” user, and I noticed that apache can’t create new files inside this folders. I have this errors in apache error.log: [Sat Oct 22 17:50:44 2011] [error] [client xx.xxx.xxx.xxx] PHP Warning: fopen(../index.htm): failed to open stream: Permission denied in /srv/www/site1.com/public/gne/gnerate.php on line 228 [Sat Oct [...]
Continue Reading »Recent Posts
- Windows File Permissions and Attributes
- What is the easiest way to upgrade my existing Perl 5.14 to Perl 5.16 on FreeBSD 9 using the ports system?
- Know if mysql has done its job
- Redirect https .com to https .co.uk without a valid SSL cert on .com without DNS change
- Why is it a bad idea to use customer email as from address



