Ubuntu :: Directory Automatically Changing File Permissions

Jul 12, 2010

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.

View 3 Replies


ADVERTISEMENT

Ubuntu :: Change Permissions For File / Add These Lines Without Changing Permissions?

Oct 16, 2010

Finally I managed to install my printer/scanner drivers.The last thing I need to do is to add the following two lines to 40-libsane.rules (which is a read only file):# Brother scanners ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes".How can I change permissions for this file or add these lines without changing permissions?

View 2 Replies View Related

Server :: Changing Permissions On NFS Mounted Directory?

Apr 19, 2011

I have a server running RHEL6 and a virtual machine also running RHEL6. I created a directory /home/data on the server and another on the VM. When I mount the host directory on the VM, I am not able to change the ownership/permissions through the VM no matter what. The ownership is set to "nobody" and I can't even change it to root.

View 4 Replies View Related

Software :: Track Who Is Changing Permissions Of A Specific Directory?

Apr 30, 2010

Anyone know a way to track who is changing permissions of a specific directory?

View 8 Replies View Related

Ubuntu :: File Permissions Keep Changing On USB Drive

Jan 25, 2010

I use a USB drive to store most of my personal and work files, and I use it both at home and at work (two different machines, both running Ubuntu). The drive is encrypted, and is accessed using TrueCrypt (the entire drive is encrypted as a device rather than an encrypted file on the device). The TrueCrypt device is formatted as ext3/ext4.

I have a problem with certain file permissions being changed to read-only (rw-r--r--) after mounting the drive. This happens after I have used it on one computer, and then I mount it on the other. Even though I have been setting write permissions to all (chmod -R a+rw *) to get around this problem, when I mount on the other machine the write access is gone. I don't want to keep manually changing permissions; I would like the file permissions to stay as I set them.I'm using the same version of TrueCrypt at work and at home. I'm running Ubuntu 9.04 at work, and 9.10 at home.I do have different usernames on these computers, and I suspect that is the problem (but don't see why this would change file permissions for all users).

View 4 Replies View Related

Ubuntu :: Changing File And Ownership Permissions?

Jan 1, 2011

I installed Ubuntu from the alternate cd a few days ago to save space and resources on a very old laptop. (install command line, then add what I wanted) But I have struck an interesting problem with file permissions. Various programs like synaptic, leafpad, pcman, Banshee, all require I enter the root password to execute them (or sudo command from terminal). I want to change synaptic from root ownership to sudo and leafpad etc to execute without using the sudo command in terminal. I could get comments on the commands before I execute them in terminal and if I am introducing a security problem, as I am still learning bash. $ sudo chown sudo:sudo synaptic

I would still be asked for my sudo password before being able to open synaptic? As in standard Ubuntu instead of root password.$ sudo chmod 777 leafpad pcman Banshee All users could open these programs from the menu? I have my admin account and a general account which I use for everyday things like surfing the net and listening to music.

View 6 Replies View Related

Ubuntu :: Usb Stick Is Changing File Permissions?

Apr 8, 2011

I have two computers (one at work, one laptop) that I use daily. Both are running Ubuntu 10.04. I frequently use a usb stick to transfer files from one to the other. Somehow, every time I do this, all files get turned into executables (as if I did a chmod a+x on them...)

This happens every time I use the usb stick. I've reformatted the stick, but still this problem persists... anyone have any ideas on what is going on? It is really getting annoying to have to zip up folders so this doesn't happen...

View 7 Replies View Related

General :: Changing File Permissions While Doing Ftp?

Sep 17, 2009

I am trying to automate ftp to transfer files from windows to Linux server automatically and my script looks like this .

@echo off
SET CUSTOM=/apps12i/oracle/KIRAN/apps/apps_st/appl/custom/12.0.0/reports/US
echo user oracle> ftpcmd.dat

[code]....

Any files we transfer through ftp from windows , their default permissions to be set 755 automatically . We are using Red Hat Enterprise Linux AS release 4 (Nahant Update 7) .

View 1 Replies View Related

General :: Changing File Permissions And Authorizations

Jan 4, 2010

I first installed linux as ubuntu version 9.04 straight off of a Computer Active CD and liked it so started to delve into file permissions and authorisations, simple stuff I suppose just so I could feel my way around things for a while. Using the built in Ubuntu software centre I downloaded and installed a prog which handles authorisations and I found that very helpful but then through the update manager I installed the latest distribution update (9.10) and now find that the authorisation software only lists a couple of things that I can get to and consequently every time I mount one of my hard disks I'm asked for my admin password even though I am logged in as administrator which is a hassle,

a small one but there all the same, as a newbie I realise it must be me not understanding something but I just dont know what, also in the previous version right clicking on the logging out panel gave you an option to remove the 60 second shutdown or restart delay and that has disappeared in the new version, again its really only just a nuisance thing but I find that sorting out this sort of thing will help me to understand the system

View 5 Replies View Related

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)

Owner: Yann
Group: 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

View 2 Replies View Related

General :: Changing File Permissions Works As Root But Not As Sudo

Nov 22, 2010

I have a really strange problem. I have a few files in a large directory that I want to make readable by everyone. So I try this:

sudo find readme* -not -perm -o+r -exec chmod +r {} ;

and get this:

sudo: unable to execute /usr/bin/find: Success

I don't know why it says Success, because the permissions were not changed. I verified by typing this:

find readme* -not -perm -o+r -exec ls -l {} ;

and get something like

-rw------- 1 root root 536871076 Nov 22 14:06 readme_20101122200429
-rw------- 1 root root 536871892 Nov 22 14:08 readme_20101122200642
-rw------- 1 root root 293458128 Nov 22 14:10 readme_20101122200859

as a last resort, I tried:

sudo chmod +r *

and got:

sudo: unable to execute /bin/chmod: Success

and again Success really means fail. So, I gave up and logged in as root and tried:

find readme* -not -perm -o+r -exec chmod +r {} ;

This time it worked. Why?

EDIT: /etc/sudoers looks like:

## Allow root to run any commands anywhere
root ALL=(ALL) ALL
##Me
user1 ALL=(ALL) ALL

View 2 Replies View Related

General :: Changing Directory - Saved File On The Desktop - Cannot Seem To Get That File To Execute It

Mar 10, 2011

I was doing a tutorial on scripting in bash. I saved my file on the desktop and I cannot seem to get to that file to execute it. Here is what I have been using:

I try cd Desktop says that there is no such directory.

I tried /home/me/Desktop same thing.

View 5 Replies View Related

General :: Vim - Avoid Changing A File's Linux Permissions When Saving Over A Samba Connection?

May 28, 2011

I have an Ubuntu development server and a Windows 7 workstation. I use Windows Gvim to edit files on the linux server, over a samba connection.Saving files from Windows change the Linux permissions in weird way depending on the Windows app I'm using and also depending on whether there's a file extension or not.Here are some testsNo extension; Notepad2: 644 to 764

matt@mattserver ~ % ls -l testfile
-rw-r--r-- 1 matt matt 0 2011-05-28 07:09 testfile
--- Save from Windows Notepad2 over network ---

[code]....

View 1 Replies View Related

General :: RW Permissions On External HDD - Chmod: Changing Permissions Of `whatever': Read-only Filesystem

Mar 15, 2010

I have a problem with my external hdd, I mounted it manually and in the mount table it says ive got rw permissions. But when i try to change permissions it says:

chmod: changing permissions of `whatever': read-only filesystem.

This is my mount table:

[root@localhost ExtHDD]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)

[code]....

View 6 Replies View Related

Ubuntu :: Run A Program Automatically When A File Appears In A Directory?

Jan 16, 2010

Does anyone know how I can make a program run automatically when a file appears in a particular directory? I have two computers, one to program the firmware on a microcontroller (command line only), and the other is my desktop machine running Ubuntu. I have an NFS share between the two. What I want is to be able to drop a new firmware load into the shared directory from the desktop, and have the other computer notice it and program the microcontroller with it. Right now I have to open an SSH session to the other computer, run the program manually, and then delete the file. I would like to automate all of that.

View 5 Replies View Related

Ubuntu :: When Setting Up NFS What Type Of File And Directory Permissions - Familiar With?

Jul 23, 2010

When setting up NFS what type of Linux file and directory permissions should you be familiar with?

View 1 Replies View Related

General :: Rpm - Overriding Installed File / Directory Permissions & Owners?

Jun 29, 2010

Every time I update certain packages with rpm/yum, they reset certain permissions on their files / directories which I have intentionally changed for various reasons. Is there a way I can override the permissions that the packagers have specified in the RPMs, and force it to keep the permissions/owner/group that I've set?On a Debian system, I would just use "dpkg-statoverride". I can't find any equivalent for RPM systems (CentOS 4 & 5 in my case).

View 1 Replies View Related

General :: Concept Of Umask - Default File And Directory Permissions

Apr 14, 2010

I am using Red Hat Linux 4 .There are some few questions in my mind related to umask. I want to know that is the default file and directory permissions ?

- When we use umask (022) command in terminal. and create a new file then the permissions applied for new file is for that session and when the system will reboot linux will take automatically its default permission from etc/bashrc or /etc/profile ?
- Can we make our own umask or the professional way is to follow 022 only ?
- What is the benefit of umask in Linux?

View 2 Replies View Related

Debian :: Changing File Download Location To Home Directory

Feb 1, 2009

I tried to download Knoppix 6.0 iso, but it ran out of storage space. It was placing it into /tmp. Is there a way that I could have it placed in my /home directory, which is plenty big?

edhe@hebrews:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 935M 256M 632M 29% /
tmpfs 470M 0 470M 0% /lib/init/rw
udev 10M 96K 10M 1% /dev
tmpfs 470M 0 470M 0% /dev/shm
/dev/sda9 356G 1.5G 337G 1% /home
/dev/sda8 373M 11M 343M 3% /tmp
/dev/sda5 4.6G 4.0G 383M 92% /usr
/dev/sda6 2.8G 341M 2.3G 13% /var

View 4 Replies View Related

General :: Change Folder Permissions Without Changing The Permissions Of The Files Within The Folder?

Aug 11, 2010

How do I change folder permissions without changing the permissions of the files within the folder?

View 6 Replies View Related

Server :: Changing The Password Of Directory Manager In Redhat Directory Services

Jul 14, 2010

How to change the password of Directory Manager in RED HAT Directory Services through a ldapclient through command line or graphical.

View 1 Replies View Related

Ubuntu :: /dev/lp0 Permissions Keep Changing?

Aug 26, 2010

The problem is whenever we reboot the system the permissions of / dev/lp0 (line printer) is changing. So every time we are changing the / dev/lp0 permissions through root using chmod 777 /dev/lp0

Is there any smooth solution for this? Why the /dev/lp0 permissions are changed with every reboot?

View 4 Replies View Related

Ubuntu :: Changing Default Permissions Of /dev/sdb

Jan 4, 2010

im looking to allow virtualbox raw disk access to /dev/sdb

currently if i

ls -l /dev/sdb
brw-rw---- 1 root disk 8,2010-01-04 17:00 /dev/sdb

now if i chmod this to 777 or use chown to change the owner this temporarily works but after a few moments it defaults back to its original permissions.

is there a way i can define the permission? i was thinking fstab but i can't have a mount point?

View 5 Replies View Related

Ubuntu :: Desktop Theme Automatically Changing?

Dec 20, 2010

My desktop theme is automatically changing when ever I switch on my comp... And if I change,the effects are only partially... That is the panel and other buttons change but the file and applications design remains the same... But however if I restart, it becomes ok.

View 1 Replies View Related

Ubuntu :: Changing Icon And Setting User Permissions?

Oct 29, 2010

I tried to place a mono icon in usr/icons/etc but I didn't have the permission to do so. I tried to change my user profile to Admin, thinking I could go back to custom, but that hasn't and it isn't allowing me to go back to my previous setting.

Within minutes of being an Admin user I noticed I couldn't even unmount something. I really need to figure out how to change my profile back to default.

After that has been dealt with, I would like some guidance on how to gain root access to put my icon where it needs to be.

View 1 Replies View Related

Ubuntu :: Server Not Accessible - Changing Permissions On Folders?

Jan 3, 2011

We have a development server not accessible to the public used for testing which was setup for us. When attempting to have my PHP scripts upload an image to a folder, I have to CHMOD the folder to 777. Ideally, when a folder is created it has permissions set to 755 - I want to be able to upload to them. Is there a way to change permissions to allow the PHP scripts that run to be able to write to a folder? I know it has something to do with owner or group, but I don't know where to start.

View 2 Replies View Related

Ubuntu :: Changing Sudoers Permissions - On A Live System?

Mar 7, 2011

i have this problem and i may need professional help; it appears smb4k made my /etc/sudoers file writable (according to log), hence, any sudo command will coerce this error:

Code: ubuntu@ubuntu~$ sudo any sudo: /etc/sudoers is mode 0640, should be 0440 sudo: no valid sudoers sources found, quitting i wanted to boot into recovery console and chmod 0440 /etc/sudoers, but it's a live system - it doesn't have a recovery mode. [URL].. How would i mount the live system from another liveCD?

View 4 Replies View Related

Networking :: Changing The Permissions Of Eth1

Sep 14, 2009

I often run "gulp", a networking utility, to capture data from an instrument on "eth1". By default gulp must be run as root to have access to the ethernet port, and when I'm the only one running it, that's fine. But I need to let several other users to capture data and don't want to give them all sudo permissions for both gulp, and more importantly, 'chmod'. Is there anyway to change the permissions of eth1 to allow all users to open it and avoid sudo entirely? This is on a Red Hat/Fedora machine.

View 1 Replies View Related

Software :: Changing Permissions Of A Folder?

Oct 4, 2009

I've compiled my own code as root (long story why) anyway I now need to switch this to a normal user to compile. So I did a simple copy/paste (using gnome/debian lenny) to my home/user. I then logged in as used to see the folders with a padlock and permissions for root only. So I logged back in as root, change permissions to the used, check they were all ok, logged back in as user, and it still says owner root, even thought when I log in as root it shows user as owner.

View 6 Replies View Related

CentOS 5 :: How To Automatically Set Scanner Permissions

Aug 23, 2011

CentOS 5.6, 32 bit
xsane-0.991-5.el5

This just started happening when I go to use my scanner with xsane:
Failed to open device "epkowa:interpreter:001:003":
Access to resource has been denied
The work around is
# chmod 2777 /dev/bus/usb/001/003

How do I tell CentOS I want my users to automatically be able to read my scanner when I boot up or when I insert the scanners USB cord after boot up?

View 11 Replies View Related







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