.profile permissions ???


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users .profile permissions ???
# 1  
Old 11-18-2008
.profile permissions ???

Hi

i was trying to change permissions of .profile on HP-UX ( HP-UX hpux1572 B.11.23 U ia64 ) so that user can not change it but irrespective of what permissions i give still user was able to make changes. so i made root:sys as owner & group still no change.

but if i remove permissions in AIX it works as expected.

why its not working on HP. any config setting ??
# 2  
Old 11-18-2008
Is it the same user in AIX?

You know, when you fall on users that know a minimum of unix, it can be challenging for an admin... ( I had to rewrite the cp command once ten years ago...)
# 3  
Old 11-18-2008
Not surprising. The user can change the permission of files hs owns (case 1)... and he can remove files -- also files owned by others -- from directories he owns, and replace them with others (case 2).

Perhaps you could make some changes to /etc/profile, as it may be it that sources .profile, and make ignore it unless it has the "right" owner and permissons?

Though what good it will do I don't know, as the user probably can start a new shell (within the existing shell) with whatever start-file he want.

An alternative would be specify a restricted shell that didn't read the user-profile at all, or perhaps specify (with options) that only the system-wide /etc/profile should be read.

Don't really understand what you hope to accomplish though, as most of the stuff set automatically by .profile can later be manually overidden with commands to the shell anyway (e.g. changing umask, limits and so on)...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

profile name

How to chage my profile name? (1 Reply)
Discussion started by: kkalyan
1 Replies

2. 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

3. Infrastructure Monitoring

trap in etc/profile and user .profile

Hello I really wonder what's trap in etc/profile and in each user .profile. I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing. I want to know ... 1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies

4. UNIX for Dummies Questions & Answers

difference between /etc/profile and .profile?

What is the difference between /etc/profile and .profile? (5 Replies)
Discussion started by: gehlnar
5 Replies

5. 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

6. UNIX for Dummies Questions & Answers

$ . ./.profile

Could anyone explain what the following command means: $ . ./.profile (3 Replies)
Discussion started by: MikeBigjohn
3 Replies

7. UNIX for Dummies Questions & Answers

Where can I read about the difference between "..profile" and ".profile"

Hi I know from reading O Riley's Classic Shell Scripting' that the .profile file is " the shells configuration file" but I am unable to find a reference to what "..profile" means. I have searched on the net, Sams Teach Yourself Unix, Unix Visual Quickstart Guide and Linux in a Nutshell. I have... (2 Replies)
Discussion started by: zorrokan
2 Replies

8. SCO

Difference between .profile and .~/.profile

what is the difference between these two lines, if we use it in korn shell script: .profile .~/.profile (3 Replies)
Discussion started by: maneesh mehta
3 Replies

9. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies

10. UNIX for Dummies Questions & Answers

why i have local.profile, local.cshrc,local.login instead of .profile, .login ?

Hello again ! Thanks for response of my first question. there is my second quesiton why i have local.profile instead of .profile file ? my all files in pwd shoes local. before any file. is anybody can tell me about that ? Thanks Abid Malik (5 Replies)
Discussion started by: abidmalik
5 Replies
Login or Register to Ask a Question