Ubuntu Servers :: Folder Permissions Automatically Set When Creating File
Apr 27, 2010
I have a little problem: I have a share folder on Ubuntu server: - Dump That folder is share with SAMBA and everyone can put files on it
My problem is the following: When someone create a folder, the folder permissions are automatically set with:
(let's take my username: Yann)
Clearly that's wrong.. I want the Group to be auto set has "users" so everyone can access the folders on that share. Anyone know how to change this ? chmod and chown is getting a bit boring
Every time I try to change file or folder permissions on a separate internal drive in ubuntu 10.10 desktop in sudo file manager, It sets it right back to the way it was before and doesn't save the permissions I want to change it to. The files aren't critical system files that are not even existent on this hard drive.
Its on a completely separate drive, Yet aren't I suppose to be in control of what gets changed to what? Instead of a Operating System doing something just for my safety? A simple AVI files permissions being changed shouldn't hurt anything. How to I stop ubuntu 10.10 from auto setting the permissions of my folders and files? Its really starting to me off right now. I've been looking around on google for Auto reset permissions for ubuntu, Haven't found one word about it. Yet I'm just going to assume someone might know how to resolve this? Or has dealed with this before.
I'm just trying to Forcefully set my folders on my separate drive all to 777 because they are all 775 and 755 and I can only access them with Write privileges if I run the SUDO file manager which I really hate having to do every so often I'm sure you can relate to how annoying it is to have to open up terminal and type something in to open a fully priviledged file manager.
I've got a small issue that when a Windows user creates a new folder through Windows Explorer (from the menu or by right clicking) the new folder is only accessible to that particular user.Example:user SABKAR (member of the HR group) creates a new folder called MarcTestMenu in a shared Samba directory through Windows Explorer:# ls -l# drwxr-sr-x 2 sabkar hr 48 2010-04-01 10:36 MarcTestMenuAt this point user MORAMY cannot copy a file or open the directory MarcTestMenu. MORAMY gets a 'not accessible' error message in WindowsIf I su to the Samba box and issue this command:# chmod 6770 MarcTestMenu/I now get the follow permissions on the directory:# drwsrws--- 2 sabkar hr 48 2010-04-01 10:38 MarcTestMenuand user MORAMY can access and copy files to the directory.
Now I have set up a terminal server at work, with Ubuntu 10.04LTS and Free NX terminal server. All works great, over all expectations. But I have some file permission problems. In the home folder I have mad a folder where files that all users should have full access to is put. The problem is that when a user puts a file there, only that user have full access to that file, other users only have read rights. How can I make it so that all files put in this folder have full rights for members in the group "staff"?
Is there a way to have a directory automatically change the permissions of a file that is written to it? I have a program which saves files to a directory, and gives those files read-only permissions to members in the group. This is a problem, because other users of my computer need to be able to edit these files. The directory itself has rw permissions for group members.
I guess what I am looking for is a way for the directory permissions to "override" the permissions the program is trying to save the files as. For example, if the directory has "rw" permissions for the group, then any file saved to it will automatically get the same permissions, regardless of what the program writing the file is trying to do.
I'm new to Ubuntu (at least on server distributions). I used debian versions for a long time and thought, to try ubuntu LTS 10.0.4, because of the long time support cycle. I had problems, to install this distribution on a x86 platform (used with ASUS P4B533-v), because of kernel panic after installation. So I used a trick to get it running. I installed Ubuntu LTS 8.04 and compiled a kernel 2.6.34 and made a distupgrade. All went o.k. and is now running as a productive system.
My question now belongs to the used pid folder /var/run. I'm using some self compiled programs and had to create a separatly folder (e.g. /var/run/stunnel). My problem is, after rebooting the system, the folder is deleted automatically! Never saw this issue on other distributions. Is there any reason why? Of course, I can write a section in my init script, searching for existing folder and if not, creating it ...
I had an old windoz 2003 server running a few recreational web sites. I've grown tired of all the hacking attempts, FTP floods, etc. Ok.. I've grown tired of windoz period.When I set the server up, I had the operating system on one physical drive and stored all of the web files on a separate physical drive just in case I ever wanted to make some changes to the operating system.in my adventurous ways, I've dumped windoz and installed ubuntu 11, 32 bit server edition on this machine. It is running fine from what I see on the server side. The first problem I've noticed is when even attempting to navigate to localhost through the server's web browser, I get a permissions issue.
So... off to the drive where the httpd.conf file points to. This is the second physical drive. When checking permissions and attempting to change them to the correct ones for the folder, I can't change them. I've tried through the GUI and the terminal as root. Neither way will change the permissions.I've stepped back and checked the permissions on the physical drive the files are stored on. I am having the same issues with the drive itself. How in the world can I change the permissions either on the drive or the folder? Is there something I should do as far as the drive's mounting?
I opened up my Gimp brushes folder so that I can put a brushes file into the folder. Would not let me do it. Said I am not the owner and do not have permission. I right clicked inside the folder, same thing permissions grayed out, not owner. No apparent option to log in or do anything to gain permission. What can I do?
I have server running ubuntu. There is folder /var/netflow and I have there files, which creates every 5minutes new ones(monitoring traffic on network). And I need to delete files older than 6 months manually. Can you help?
I am running ubuntu using VirtualBox on a Macbook Pro. I wanted to share my documents folder on the Mac in the virtual machine. I had no issues creating/mounting the share folder on ubuntu. However the file permissions for the shared folder are owned by root.
I have two drives in my computer: a 160GB and an 80GB. The 80 holds Ubuntu, the home folder, etc. The 160 is for other files. I need to change the read-write permissions on the 160, but I can't. If I do it through the GUI (right-click>permissions) it just changes back instantly. If I do it through the command line (even with sudo), it has no effect.
I've migrated to Suse from Mandriva. I installed all my backup folders/files to my "home" folder but they have come up locked. I remember in Mandriva to change the permissions I pressed Alt F2 and then entered a command. How do I do it in Suse?
I have Ubuntu server with Apache 2, PHP, and various DBMSs running in VirtualBox on my Mac host for my web development work. To easily create/edit the files I'm working on, I mounted a directory from my Mac host via the VirtualBox shared directory feature to /var/www/. Every file I create on my Mac host has the following permissions on the on the Server: -rw-r--r-- 1 root root 6 2011-07-30 01:27 test.The problem is that most PHPscripts/frameworks/etc.need write access to some files.It is extremely annoying to have to chmod every new file/directory that needs write access.Is there a way to set the correct permissions for the files/directories automatically?
I'm trying to learn about permissions on linux webserver with apache.Some clues to the system: The server I have to play around with is Fedora based. Apache runs as apache:apache. To allow for e.g. php to write to a file the file needs to be chmod 777. 755 is not sufficiant.What I'm wondering is basically how set up permissions like they should be on e.g. a "shared web host".My main problem is that if I set a permission so that one user cannot access anothers home folder, then apache can't read from the public_html folder either.
To keep the users out I need to set chmod 700. But to let apache to read I need to have at least execute on world,so a 701 basically works, but won't let some users in.So I'm really stuck on what to do. Have been concidering adding the apache user to the frous grours below to avoid having to add the world execute flag, but is that a bad thing? Should it be the other way around, the users in the groups below should also be in the apache group?I was aiming at having 4 groups:
1. webapp: same as dev_int, but is the only one that can go inside the webapp/live folder to e.g. do an update from the repo.
2. dev_int: can read,write and execute everything in the "web root", including the two below, but nothing outside of the web root
3. dev_ext: can read write and execute in all client folders, but cannot access anything outside of the webapp root
4. clientsBasic ftp accounts. Has a home folder with a public_html, but cannot access any other home folders
I own an Acer Aspire One which has Linpus Lite installed. Last night I attempted to delete a couple of files only to find they are read only and that I cannot change the permissions by right clicking and changing the drop down menu from read only.
These aren't protected files or anything, they are files I've downloaded or created myself (one using the onboard web cam to test it).
I attempted to play with Terminal for a bit but as a newbie I got easily lost, not like I can fall back on command prompt knowledge from Windows!
I think it's somehow connected with the user which accesses these docs or tries to change the permissions. I also tried with an su- which meant I was using Terminal as root, however, I wasn't sure how I could then set the permissions for a particular file/folder within the file system.
i have 3 shares on my samba. i have users - user, manager and boss projects is RW to everyone reference is R to everyone RW to manager and boss Proposals is RW only to boss, no access to others However when boss logs in and creates a directory in projects share, the directory can only be renamed bu users and manager, and directory contents are read only for users and managers, even deletion / rename is denied. How can i make sure that when ever boss creates a directory in projects, it retains base folder permissions and is writable to user this is my samba file... i am using red hat 6.1 with samba 3.5.6 (i think)
I am trying to rescue some files on a Dell Laptop running XP that is in a BSOD state. I can boot up Knoppix just fine but all the files are read only but get the error: The remount command failed. Maybe there is another process accessing the filesystem currently.Also when I look at the files and folders on the Knoppix CD they look really odd. See attachment
on certain folders on a samba-server I would like to allow everyone everything.(Note: This refers to the filesystem-permissions. External security is cared for by samba. No problem here)That means: every local user and every remote user should be able to fully create, delete and modify every file in certain folders and all subfolder of these folders. This should include file contents and timestamps and permissions. And it should include modifying files owned by someone else, again meaning create/delete/modify/timestamp etc.
I have a recently setup my first linux server (hardy) and am having problems with the permissions for a log file being changed. I believe this is caused by syslogd, but am not sure how to correct it. Bacula will report it is unable to start a backup because it is unable to open the log file (/var/lib/bacula/log) "permission denied". After changing the owner from syslog to bacula, the backup will resume. However, the following day I encounter the same problem because the owner of the log has been changed back to syslog.I see where the permissions for logs are altered in sysklogd, but I am not certain how to make bacula exempt or if this is the right approach.
Is ACL the best way to ensure the permissions of newly created files? Basically I have a directory: /data/department
I've done chmod g+s on it so the group is correct on new files but I want new files to also have 775 permissions so the rest of the group can access these files fully. Currently they are created with the default 755 (which I want still every where out side of /data/department ).
Trying to setup a file server for a small group of users and I am in need of help with file permissions with Ubuntu Server 10.10.
I have a single share mapping (ex /media/hdd1/share1). There are several folders that everyone will need read/write/edit permissions and there will be a few folders that all users will need read permissions and a couple of users will need read/write/edit permissions.
I have tried several things and as long as I create the folders/files through ssh using sudo, the permissions are fine, but when the users create file and folders through their computers (mixture of Windows and Mac) that user becomes the owner and no one else can write or edit those files.
I am using SAMBA and though it was a config issue with that but I logged each user directly into the server with the same issue.
I tried sudo chmod 777 /media/hdd1/share1 but all newly created files have the above issue.
What is recommended way to set permissions of folders VAR/WWW for use with apache in 11.04? I would like to let the user "ABC" have access to read/write the website files in this directory. How should permissions on these files be set?
This is probably a pretty basic question seeing as I'm pretty new to Ubuntu Server. I'm running a simple website from my Ubuntu Server machine with The files are all stored in /var/www/ and then subdirectories. The problem is that when I add files through FTP I need to go and change all of the file permissions since by default they do not have read access so can't be accessed through a web browser on another machine.How can I make the default permissions readable for the directory and all new files that will be moved in it
I'm working on a remote Ubuntu 9.10 server, which is accessed via VPN. I installed Joomla, but had difficulty uploading new components, which I traced to a file permissions problem. I used FileZilla to FTP onto the site and tried to make the chmod changes I needed, but the commands kept failing. Eventually, I contacted the sys admin and told him I thought that there was an ownership problem with the directories. He checked and told me that I was logging in with exactly the same user name and password that he was using (it's not a live system currently) and that he could make chmod changes without any problems. Because all my attempts were still failing, he eventually did the following:
chown -R administrator:administrator /var/www
/var/www is where all the Joomla files are stored and Administrator is the user name.Now I find that when I run a chmod command in FileZilla, the server reports that it worked (see below):
However, if I go back and check the tmp folder permissions, I find that they are still set to 777.This still looks like an ownership problem to me, but I don't understand why the server seems to think that the chmod changes are working, when they aren't.