Sponsored Content
Top Forums UNIX for Dummies Questions & Answers changing default file permissions Post 93306 by bhargav on Sunday 18th of December 2005 03:13:37 AM
Old 12-18-2005
put the following in .profile

Code:
umask  026

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

changing file permissions

Use the following to Change permission of fileB (fileB could be fileB*) to change its permission same as the permission of fileA. chmod `ls -l fileA | awk '{pr int "u+", substr($1,2,1), substr($1,3,1), substr($1,4,1), ",g+", substr($1,5,1), substr($1,6,1), substr($1,7,1), ",o+",... (0 Replies)
Discussion started by: gagansharma
0 Replies

2. UNIX for Advanced & Expert Users

Changing file permissions on upload

Hello ! When I connect to a RH FTP server, the files I transfer (from my "windows computer") to this server have the following permissions : -rw------- but I would like those files to have the following permissions : - rw-rw-r-x How can I do that ??? :) Thanks for your help ! G. (6 Replies)
Discussion started by: guix
6 Replies

3. UNIX for Advanced & Expert Users

Changing default permissions -without "umask"-...

Hi! My question is this: Is it possible to change the default permissions in UNIX (666 for files and 777 for directories)?. I am not talking about using the command "umask". I mean, with the command "umask" you can modify permissions from a default permissions x. Is it possible to make... (4 Replies)
Discussion started by: chicoGuapo
4 Replies

4. UNIX for Dummies Questions & Answers

Changing file permissions

Is there a way to change a unix user's default file permissions so that when he creates a file, by default permissions are 777??? Thanks! (7 Replies)
Discussion started by: FredSmith
7 Replies

5. UNIX for Dummies Questions & Answers

changing permissions on a 444 file (ie chmod 444)

if I have a file set to permisions 444 (r-- r-- r--) should anyone other than the owner and root be able to change these permissions or delete the file. Apologies if this is a no-brainer but I cant test it myself and someone in our organisation is playin around with files they shouldnt be (1 Reply)
Discussion started by: ajcannon
1 Replies

6. Cybersecurity

changing /cn@0:console file permissions

I'm doing a security sweep of a Sun Sol 5.8 system. The file: /dev/console, which links to /devices/pseudo/cn@0:console, has the following perms: crw--w--w- I would like to get rid of the world write permissions. I can change the file permissions, but as soon as log back in, they are changed... (4 Replies)
Discussion started by: ErnieG
4 Replies

7. Shell Programming and Scripting

HELP changing file permissions

does anyone know how to write a script that will change file permissions. because the Admin blocked me from altering any of my files im only allowed to read and i heard a script like this can bypass it but i dont know how to write it. Display current users. Display user Ids only. Display... (10 Replies)
Discussion started by: live2learn
10 Replies

8. Homework & Coursework Questions

changing permissions of a file whos name was passed to 755

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a shell script that gives a passed file the "755" access permissions. The shell script should: Change... (0 Replies)
Discussion started by: anix007
0 Replies

9. Homework & Coursework Questions

changing permissions of a file whos name was passed to 755

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a shell script that gives a passed file the "755" access permissions. The shell script should: Change... (5 Replies)
Discussion started by: anix007
5 Replies

10. 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
pset_getattr(2) 						System Calls Manual						   pset_getattr(2)

NAME
pset_getattr(), pset_setattr() - manage processor set attributes SYNOPSIS
DESCRIPTION
The function returns the current value of the attribute type for the processor set pset in the memory location pointed to by val. The function assigns the value val to the attribute type for processor set pset. A user can not change the attribute values for the system default processor set using the function. A user with the privilege or a user with READ permission for the processor set may query any attribute values. The following processor set attributes may be queried or changed through these functions: The GID (group id) of the processor set owner. The creator's GID is assigned at processor set creation time. A user with the privilege or the pset owner may change the value of this attribute. The UID of the processor set owner. The creator is assigned as the owner at processor set creation time. A user with the privilege or the pset owner may change the value of this attribute. The access permission bitmask for the processor set. These are defined similar to file access permissions. There are three types of access: The user can bind its process or thread to the processor set using the function (see pset_bind(2)). The user can query the processor set attributes. The user can modify the processor set attributes and configuration, and destroy the processor set. The following bit values are used for the access bitmask: All users in processor set owner's group have EXEC access. All users in processor set owner's group have READ access. All users in processor set owner's group have WRITE access. All others have EXEC access. All others have READ access. All others have WRITE access. The processor set owner has EXEC access. The processor set owner has READ access. The processor set owner has WRITE access. A newly created processor set by default has READ and EXEC access for everyone, but WRITE access only for the processor set owner. A user with the privilege or the pset owner may change the value of the attribute. A value of indicates that processors in this processor set are configured to receive external interrupts. It may be assigned a value of to disable all processors in the processor set from receiving and processing external I/O interrupts. Not all platforms may support this feature. By default, I/O interrupts are enabled on all processors. The feature may be useful for some realtime applica- tions where unpredictable interrupt handling overhead may adversely impact the application's response time requirements. Only a user with the privilege may change this attribute. Indicates the behavior when a request to destroy a non-empty processor set is made through the function. Possible values are: Reassign all processors in the processor set pset to the system default processor set. Migrate all threads and processes bound to this processor set to the system default processor set. This is the default value for this attribute. Make the request fail with an error if there are threads or processes bound to the processor set or if there are processors assigned to the processor set. Make the request fail with an error if there are active threads or processes bound to the processor set. Otherwise, perform the operation by reas- signing the processors in the pset to the system default processor set. A user with the privilege or a user with WRITE permissions may change the value of this attribute. Indicates the behavior when a request to bind a process or a thread to an empty processor set is made through the function. Possible values are: Go through with the request. However, the affected threads will not be scheduled to execute until a processor is assigned to the empty processor set. Reject the request with an error. This is the default value for this attribute. A user with the privilege or a user with WRITE permissions may change the value of this attribute. Indicates the behavior when a request to remove the last processor from a processor set is made through the function, or through the processor deallocation functionality. Possible values are: Make the request fail if there are active threads and processes assigned to the processor set. Assign the processor to the specified processor set, and migrate all threads and processes to the system default processor set This is the default value for this attribute. A user with the privilege or a user with WRITE permissions may change the value of the attribute. The LCPU attribute of a processor set indicates whether the physical processor cores in a pset are enabled with logical processors (LCPUs). On systems with the Hyper-Threading (HT) feature enabled, each proces- sor core may have more than one hyper-thread per physical processor core. Each hyper-thread is represented to the operating system and applications as a logical processor (LCPU). The can be set for the default processor set using the command. This attribute is supported only on system with the Hyper-Threading feature. If this feature is disabled at the firmware level or is not supported, this attribute cannot change. Enable the LCPUs in a processor set. This is the default value for systems with the Hyper-Threading feature enabled. Disable the LCPUs in the processor set. This is the default value for the systems without the Hyper-Threading feature or systems with the Hyper-Threading disabled in the firmware. The default value for any attribute can be assigned using the value in the function. Security Restrictions Some or all of the actions associated with this system call require the privilege. Processes owned by the superuser have this privilege. Processes owned by other users may have this privilege, depending on system configuration. See privileges(5) for more information about privileged access on systems that support fine-grained privileges. RETURN VALUE
The functions return zero on successful completion. Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
or fails if one or more of the following is true: The memory location pointed to by val is not writable by the user for The specified processor set pset, the attribute type, or the attribute val is invalid. The memory location pointed to by val is NULL for The processor set functionality is not supported by the underlying HP-UX version. The requested attribute value is not supported for the function. The user does not have the necessary permissions to query or change the processor set attributes. AUTHOR
and were developed by HP. SEE ALSO
kctune(1M), psrset(1M), pset_assign(2), pset_bind(2), pset_create(2), pset_ctl(2), pset_destroy(2), privgrp(4), lcpu_attr(5), privi- leges(5). pset_getattr(2)
All times are GMT -4. The time now is 06:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy