Software :: Write Access To A File But Not Delete?
Mar 16, 2011On a server in an office, I want a situation where people on the client PC are able to write to a particular file, but not have privileges to delete it -
View 3 RepliesOn a server in an office, I want a situation where people on the client PC are able to write to a particular file, but not have privileges to delete it -
View 3 RepliesWhen I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?
View 1 Replies View Relatedi want to write into the mac os x partition inorder to delete the appleintelcpupowermanagment.kext file
View 1 Replies View RelatedI own a particular file on a Linux system. I would like to give 2 groups (accounting, shipping) read access and only read access, and 3 users(Mike, Raj and Wally) write access and only write access. How can I accomplish this?
View 3 Replies View RelatedI have apache2 running on my computer. I want to change the permissions for /var/www/ so that I can edit the files without a problem. Right now I can use the gksudo command, but I'd like to be able to have all the files available when using an IDE like eclipse.
I've read in several places that
Code:
chmod 755 /var/www
will do, but if I'm not mistaken that would give read/write access to anyone. I'm not in a production environment, so I'm not too worried about security, but I'd like to give anyone else as less permissions as possible. Would this be possible?
I'm having this problem wherein the ppp program is altering the /etc/resolv.conf file when connecting.This, despite me having set file permissions to read-only. What could be the problem here?
View 9 Replies View RelatedI have a site hosted on a cheap hosting company and I need to allow write access to certain users in certain directories, sometimes on a file basis.
Q: how do I do that in a .htaccess file?
I have never used .htaccess although from what I read it looks straightforward but when I try it, I get a "500 server error" even with the example .htaccess file the hosting company suggested I use. (I have informed the host as they require and am awaiting their answer)
The site is automatically set up with a couple of dot file in the root directory when I got it, they are:
.htaccess file
AuthType Basic
AuthUserFile "/home/mydomain/www/www/.htpasswd"
AuthName Limited!
require valid-user
Q: Is there in this something overriding my .htaccess in a bad way? (googling for AuthName shed no light on my problem)
.htpasswd
mydomain:$apr1$vcPc9...$kz4vmtvfznKfFmHktN0CI0
Bill:$apr1$C.FLI...$KmvqrHFt6i/.rMhfREtRV0
I added the user Bill, apparently successfully, the first line and .htaccess were set up by the host.
What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.
View 1 Replies View RelatedI am trying to write a script to access sqlplus and use the output to replace the result in another file. But I am having some issues with it (This script is just a test script and I am just trying to print the updated value.
#!/bin/bash
a=`echo exit|sqlplus -S -L xxx/xxx@xxx @test.sql`
bb=$a
[code].....
Code:
mount
/dev/sdd1 on /media/E0FD-1813 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)
cp 'Aankhon Aankhon Mein hum tum ho gaye deewane.mp3' /media/E0FD-1813/Music/sumeet/a
cp: cannot create regular file '/media/E0FD-1813/Music/sumeet/a/Aankhon Aankhon Mein hum tum ho gaye deewane.mp3': Read-only file system
The micro sd card mounts & works as fat32 in windows xp just fine.
I'm running ubuntu 9.10, and created a softraid5 with no problems. Now i need it to automount with user read/write access, and i need to make some network share folders. My fstab has the following line for the raid:
Code:
/dev/md0 /media/raid auto rw,user,auto,exec 0 0
After i mounted it, i changed the permission with:
Code:
sudo chmod 777 /media/raid/
So now i can create folders and files on it.
Then i created some shares, one with guest access and other with no guest access.
Now the questions:
1) If i access the guest shared folder via WinXP, i create files and folders, but they appear locked on ubuntu, so i cant access them until i change the permissions. If i go to proprieties/Permissions, the owner is "nobody".
2) What password do i need to use on WinXP, and i try to access the non-guest shared folded? Do i need to create a user just for that?
Why is there no Delete when I right click like there is with Windows in ubuntu? Pretty much everything else is there like new folder and so on Is there some way to add it? Also why when i delete something does it not ask me if I am sure that i want to delete that file?
View 6 Replies View RelatedIve installed Gaussian '03 on fedora Core 10, but I'm unable to run it. It aborts and i get the following error
Code:
Erroneous write during file extend. write -1 instead of 4096
Probably out of disk space.
Write error in NtrExt1
share a mount"/RAID" on my server: 192.168.0.2 with everyone on my network.192.168.0.*
From what I have listed below I am able to mount the share but I can not write or delete anything. It is almost like it is ro only permissions.
From the Server:
Code:
sudo cat /etc/exports
[sudo] password for jesse:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
[code]....
Eventually I need to share 192.168.0.2:/RAID on two OSX computers as well. I read some places where you need to add insecure to your /etc/exports on your server in order for the OSX client to access the the share.
Long time reader, first time poster. I've got, what has become to me, a brain bender. It seems ACL's are the best way to go, but I am not 100% sure. Each user should be able to create files and modify each others'files, but should not be able to delete any one elses files in a directory.chmod -1777?setfacl?
View 2 Replies View RelatedI am dual booting OpenSuse 11.2 and Windows 7 both 64bit on my PC. I've got VMware workstation installed on both. I've got few virtual machines which were all created in Windows VMware and they're all stored on a separate partition. I can access this partition and all other NTFS partition from Suse but with read-only permissions. That means I can't run any of these virtual machines from Suse VMware. Is there any possible way to make all these drives writeable from Suse? I'm really hoping someone would be able to help me. I've got a lot of googling and have even searched this forum but without any luck.
View 4 Replies View Relatedi have to write a shell script that will delete all the .dat files in /var/oracle/etl/incoming which the created date of the file is 7 days before the currrent date.
View 8 Replies View RelatedI am using my Ubuntu machine to serve as a media server and network storage. The problem I have is iTunes on my desktop managed to make 2 copies of every song on the machine so instead of the 30GB I have its up to almost 100gb. I was wondering if there was a way to write a script to go through and delete the duplicates. The duplicates are the same filename as the original except a 1 or 2 following. Wasn't looking forward to deleting 12,000 files by hand.
View 1 Replies View RelatedI just got a new PC with 2TB of HDD space and it's running Ubuntu 10.04.1 32bit. I have created a user for networking, called share and have created a folder within the home folder called public. I then shared the folder and gave 777 access to it as I want this to be public - but for my local network and my later for ssh access. I have installed samba, and under the sharing options I allowed for guest logins and people to write and delete from folder. SO how would I be able to "see" this from my windows machine? It's running XP pro and it has a domain other than workgroup - but that shouldn't affect it should it?
Also, the laptop with XP is on the wireless with and internal IP of 10.0.0.135 and my PC is on the LAN connection with and internal IP of 10.0.0.1 I'm sort of familiar with networks, but I have NO clue as to how to do this.
I got this part from my script working that it will delete a folder is from 8 days agoEightDaysAgo=`(date --date="8 days ago" +%d-%m-%Y)`rm -rf $EightDaysAgoTarHowever I need to remove files that are older than 8days for example if the script is'nt run for a day it will remove both the 9th and 8th day one not just the 8th day one. If I'm making any sense lol
View 3 Replies View RelatedI'm running my website on a linux server. I'm using a mac. Apparently, mac mail has a bug where it creates too many imap processes.
Since I'm on a shared server with a 25 process limit, with 3 email accts x 4+ processes each = a lot of problems!
I'm trying to write a cron job to delete imap processes every minute.
I've tried two things
1) following this blog's advice [URL]
Code:
killall imap
i realised it was imapd not imap, but i tried another method anyway
2) create a kill-imap.sh file in my server folder.
Code:
#!/bin/bash
/usr/bin/killall imapd
then executing the file from the cron command /kill-imap.sh
both these cases, it didn't seem to work!
I would get a daemon emai reply with
imapd: no process killed
just to give more info, the existing imap processes look like this
/usr/lib/courier-imap/bin/imapd /home/sitename/mail/sitename.com/emailusername
honestly, I'm not too experienced in this, and i've searched the net without luck. can anyone advise what i'm supposed to do to kill these imap processes every 5 min via cron job?
How would i delete all the folders access one i specify.for example if a there are 4 folders namely a b c and d. How would i prevent deleting folder b .Whatever folders other than b should be deleted?
View 13 Replies View RelatedI have tried almost everything and still can't write to the SMB share on my ubuntu machine from my mac. The [media] section is the folder that I'm trying to enable write access for.
I have pasted the smb.conf file below:
Many folders within a subdirectory some of which have lots of data in and some of which have only one specific file called produkt.fil inside.I need a command to find and delete those folders that contain ONLY the file produkt.fil - if other files exist (doesnt matter what they are) then they should be left alone. Note: produkt.fil exists in all of the folders always.
View 5 Replies View Relatedi want to find a command line way to edit a text file to delete all commas in the file. i do not want to replace them w/ anything.
View 2 Replies View RelatedI am trying to delete lines of a file if they contain text that is present on another file. For example
> cat one.txt:
a
b
c
d
[code]....
I get the following output:
> ./test.sh one.txt two.txt
a
b
d
e
[code]....
How do I delete a file if it happens like this.
-????????? ? ? ? ? ? temp.cgi
On my Debian server I installed Samba for sharing directories in my local network. I know how to set access rights but I have a problem. I would like to allow an user (example "nobody") to create files or directories in a shared directory but to deny to modify or delete something.How can I do that?Second question, on a file, I know that we can set rights for "u", "g" and "o". But like the NTFS permissions, can we apply rights for each users?
View 3 Replies View Relatedi have a server and im trying to use ftp to edit my website with dreamweaver. im using vsftpd and i have access where i can read all the files but i cant add any. any clues?
View 5 Replies View RelatedI'm using Arch right now and i'm having problems syncing my ipod with Amarok (KDE). Everytime I would want to sync a song, it would give me access denied. it is currently mounted at /tmp/ipodbxQtrU and i have tried using chmod with no luck. I was in root when i used "chmod -R user ipodbxQtrU" and it said operation not permitted.
View 1 Replies View Related