Sponsored Content
Full Discussion: Reset file permissions
Top Forums UNIX for Dummies Questions & Answers Reset file permissions Post 302540151 by Corona688 on Tuesday 19th of July 2011 06:35:10 PM
Old 07-19-2011
I don't know of a command to rest any random file to default file permissions. The system doesn't keep a separate 'default' for each and every file you make. If you screwed up some system files and need to fix it, you're going to have to be more specific about what you did.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Take a file from the system and put on tape and reset the file to 0 bytes

:mad: I did this the other day but one of my support personnel removed my history so i could call it back up to remeber the exact command since i am air-headed at times. I am trying to take a 30 MEG file off the system and drop it to tape then i want to make the file go back to being 0 bytes so... (1 Reply)
Discussion started by: JackieRyan26
1 Replies

2. UNIX for Dummies Questions & Answers

Reset Home Directory Permissions

I accidently reset the permissions of my /home/punkrockguy318 directory to root only. How can I get my punkrockguy318 permissions ( and all of it's contents) to be read/write accesable only to punkrockguy318 and root? (5 Replies)
Discussion started by: punkrockguy318
5 Replies

3. UNIX for Dummies Questions & Answers

shadow file after a password reset

hi, I had to reset a lost root password by editing the /etc/passwd and /etc/shadow files ( this is a xen vm file, so i mounted and chrooted the file ) after the reboot with an empty password on root , i have set a new password with passwd but it only changed the /etc/passwd file.... (0 Replies)
Discussion started by: progressdll
0 Replies

4. HP-UX

To give the "unzip" permissions & "create" file permissions

Hi, I am a Unix Admin. I have to give the permissions to a user for creating new file in a directory in HP-Ux 11.11 system since he cannot able to create a new file in the directory. Thanks in advance. Mike (3 Replies)
Discussion started by: Mike1234
3 Replies

5. Shell Programming and Scripting

Retain file permissions when saving .sh file from internet [OS X]

Hello. I have written a bash script that I am sharing with an OS X community I am a member of. The purpose of the script is to execute a series of commands for members without them having to get involved with Terminal, as it can be daunting for those with no experience of it at all. I have renamed... (4 Replies)
Discussion started by: baza210
4 Replies

6. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

7. Shell Programming and Scripting

Reset different and multiple .txt file content to 0

I need help. I have to create a cron job that will reset the value of different and multiple .txt file to 0. Example: Actual 172_21.txt = 25 192_101.txt = 10 192_168.txt = 5 10_10.txt = 3 After the cron job 172_21.txt = 0 192_101.txt = 0 192_168.txt = 0 10_10.txt = 0 The cron... (2 Replies)
Discussion started by: jasperux
2 Replies

8. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies
MOUNT_EXFAT(8)						    BSD System Manager's Manual 					    MOUNT_EXFAT(8)

NAME
mount_exfat -- mount an ExFAT file system SYNOPSIS
mount_exfat [-o options] [-u uid] [-g gid] [-m mask] device directory DESCRIPTION
The mount_exfat command mounts the ExFAT filesystem from the device device onto the directory given by directory. This command is normally invoked by diskarbitrationd(8) as the result of detecting a device with a file system recognized as ExFAT. It can also be invoked indirectly by executing the mount(8) command with the -t exfat option. The options are as follows: -o options Use the specified mount options, as described in mount(8). -u uid Set the owner of the files in the file system to uid. The default owner is the owner of the directory on which the file system is being mounted. -g gid Set the group of the files in the file system to gid. The default group is the group of the directory on which the file system is being mounted. -m mask Specify the maximum file permissions for files in the file system. (For example, a mask of 755 specifies that, by default, the owner should have read, write, and execute permissions for files, but others should only have read and execute permissions. See chmod(1) for more information about octal file modes.) Only the nine low-order bits of mask are used. The default mask is taken from the directory on which the file system is being mounted. If none of the -u, -g, or -m options are given, the volume will be mounted with the MNT_UNKNOWNPERMISSIONS flag (equivalent to the -o noowners option). If the device is internal and not removable, the volume will be mounted with the MNT_ASYNC flag (equivalent to the -o async option) by default. That default can be overridden with the -o noasync option. When mounted with the -o noasync option, metadata updates are synced to disk frequently (by default, 50ms after the system call that changed the metadata returns to its caller). SEE ALSO
fsck_exfat(8), exfat.util(8), mount(2), unmount(2), fstab(5), mount(8) HISTORY
The mount_exfat utility first appeared in Mac OS X 10.6.3. Darwin January 19, 2010 Darwin
All times are GMT -4. The time now is 09:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy