Should I allow my child to make an alternate meal if they do not like anything served at mealtime? C# TBB updating metadata value Can I sell a stock immediately US Election results 2016: What went wrong with prediction models? the group on the directory, who are not themselves the root user, also have write privileges to the directory as indicated by the second rwx block All other users only have However, I am curious if there's a way to change the change date and time also. have a peek at this web-site
Regards, Ram ramky79 View Public Profile Find all posts by ramky79 #4 08-23-2007 Perderabo Unix Daemon (Administrator Emeritus) Join Date: Aug 2001 Last Activity: 26 February 2016, I don't see the need to alter this behaviour. –Tom Auger Jun 15 '11 at 19:10 @Tom: The owner doesn't change only because these are existing files. By default it will take the current system time and update the atime field. NOTE: It is not possible to change the ctime using touch command 4. http://www.unix.com/shell-programming-and-scripting/42178-touch.html
add a comment| 2 Answers 2 active oldest votes up vote 6 down vote accepted You can't edit the contents of the public directory if you don't have write access. Browse other questions tagged linux or ask your own question. up vote 3 down vote favorite Lets just have some typical usage of touch as expected: $ touch this $ sudo chown root this $ touch this touch: this: Permission denied exceptional tasks. –Murphy Apr 13 at 11:09 I agree.
Root users do not get this message. Is creation date the same as well? –Louis W Jun 4 '09 at 21:23 If you mean the ctime, that cannot be changed by anyone to any time other How do unlimited vacation days work? All UNIX systems.
Browse other questions tagged permissions scp ftp or ask your own question. Touch Setting Times Of Permission Denied There is absolutely no technical reason why you shouldn't be using SCM, but there may be a human reason. I only suggested it because the OP said the user already had sudo access. –Caleb Jun 15 '11 at 9:29 Thanks - this is interesting, although the developer is http://unix.stackexchange.com/questions/81768/how-can-i-change-the-error-messages-for-touch Follow us on Google+ Follow us on Twitter Become a fan on Facebook Support Us Support this blog by purchasing one of my ebooks.
If you do not specify -a or -m, touch behaves as though you specified both. Safety - Improve braking power in wet conditions What is a satisfactory result of penetration testing assessment? The user can sudo, but since this is happening via an SCP/FTP client, there's no way to do that either. Not the answer you're looking for?
command-line permissions share|improve this question edited Apr 27 at 16:05 Anthon 48k1464127 asked Jul 4 '13 at 15:52 Incognito 151114 You can (1) patch and recompile touch or (2) Remove advertisements Sponsored Links ramky79 View Public Profile Find all posts by ramky79 #2 08-23-2007 Neo Administrator Join Date: Sep 2000 Last Activity: 10 November 2016, 10:08 I have done that before on linux and it works. Source On the extended FAT file system, the earliest date accepted is 1980.
You need to be able to write to the directory to add a reference to the relevant inode for the file you are adding. The following information is part of the event: nfsd: PID 2700: Unable to seteuid(544): Permission denied. ------------------ Regards, Tom -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Follow-Ups: So far, all attempts at automatic synchronization have failed - even using WinSCP in "watch folder" mode, where it monitors a local folder and attempts to upload any changes up to
Change File's Modification Time using -m You can change the modification time of a file using -m option. $ touch -m *.o The above method can be used to change the touch -m -t 201502041205.20 filename--its k k verify this one time stamp will not display. For the time being I am testing this directly on the command line. Any thoughts on how to grant user permission to touch -t these specific files without chowning them to him?
Modify the kernel to add an interface to change the ctime. Polyglot Anagrams Cops' Thread As a monk, can I use Deflect Missiles to protect my ally? first copy the file to another name, then erase the original file with the copy : you are now the owner, and can set any time you want. –Offirmo Dec 28 have a peek here Please click the link in the confirmation email to activate your subscription.
Thank you vary much…… Link Mehboob October 30, 2014, 6:39 am Cool, Helps in many ways Link Daryl Strawberry February 1, 2016, 7:36 am Thanks Link harikrishna muppa April 18, 2016, Works fine on my mac, but when I do this on a linux server get error. Again, as I mentioned in the edit to my post, I want this solution to work for any average user, not some priviledged users, beyond someone belonging to the group that How to handle swear words in quote / transcription?