Home > Cannot Change > Touch Cannot Change Times On Unix

Touch Cannot Change Times On Unix

Contents

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

Touch: Cannot Change Times On : Permission Denied

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?

  1. What do read, write and execute permissions mean in the context of a directory?
  2. The effective uid must own the file and have write permission to the file or the effective uid must be root.
  3. The following example will create a zero byte new file named tgs.txt. $ touch tgs.txt You can also use -c option to avoid creating new files.
  4. Teenage daughter refusing to go to school Straight line equation C# TBB updating metadata value Professor Lewin: "Which string will break?" / Me: "That one." / Professor Lewin: "Wrong!" GO OUT
  5. If the test file doesn't already exist in public, touch will attempt to create a new file.
  6. My cat sat on my laptop, now the right side of my keyboard types the wrong characters Polyglot Anagrams Robbers' Thread Limit computation technology in a futuristic society Why were pre-election
  7. This isn't a good option, because ignoring errors is always risky.

Touch Setting Times Of Permission Denied

You can also simply drop me a line to say hello!. Bonuses more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Touch: Cannot Change Times On : Permission Denied Not the answer you're looking for? Man Touch but strangely the system is throwing the above error.

Mimsy were the Borogoves - why is "mimsy" an adjective? Check This Out Isn't AES-NI useless because now the key length need to be longer? With rsync, you won't be able to set the time of existing directories: they'll be set to the time when a file was last synchronized in them. more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science

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

Forum Operations by The UNIX and Linux Forums current community chat Unix & Linux Unix & Linux Meta your communities Sign up or log in to customize your list.

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?

more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science linux share|improve this question asked Jun 4 '09 at 21:06 Louis W 1,01532658 What Linux are you using? So it must be possible. What is configured (drwxrwxr-x) means : user root has read-write-exec rights group root has read-write-exec rights other has read-exec rights Verify that your user is in the root group or give