- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: .login, .profile and .rhost
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2003 07:50 PM
04-13-2003 07:50 PM
Could you all please help me out here.
The three files above currently have the file permisson as rwxrwxrwx for all the user id as well as root, can i change the file permission to rw------- for all the above files.
Would this disturb the server at any way?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2003 07:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2003 08:03 PM
04-13-2003 08:03 PM
Re: .login, .profile and .rhost
Definitely change them, but to:
-rw-r----- which relates to 640
Also have a look at the systems umask setting it may need changing.
# umask
To fix this add two line to your /etc/profile file:
# umask setting
umask 022
You will most likely find quite a number of files that have inappropriate permissions. Here is hwo to find them, particularly for the operating system filesystems.
# find / /opt /usr -xdev -type f -perm 666
# find / /opt /usr -xdev -type f -perm 777
# find / /opt /usr -xdev -type d -perm 777
I would also change the root password as well, just to be on the safe side.
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2003 08:07 PM
04-13-2003 08:07 PM
Re: .login, .profile and .rhost
I would change the permissions on the above files to r for the owner of the files. I would not let users change the contents of these files.
The can be owned by root and still sourced by users.
.login is the startup source for the c shell, csh
.profile is the startup for posix and korn shell.
.rhost is most distrubing of all in this case. This lets users or bad people change who can remotely log onto your system from other systems.
Even with proper permissions remote login is a security hazard. I'd shut it down in /etc/inetd.conf and use the following secure substitute.
Root priviledges on all your servers were endangered.
It's call secure shell, its free. Here is a link and I'm attaching Chris Vail's cookbook for secure passing of public keys and such to enable secure remote functions.
Secure Shell: a replacement for rcp ftp and telnet that encrypts passwords
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2003 08:45 PM
04-13-2003 08:45 PM
Re: .login, .profile and .rhost
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2003 09:58 PM
04-13-2003 09:58 PM
Re: .login, .profile and .rhost
Looking at this question and the other question on umask, some compromise has gone on with the unix machines and access permissions... What happened?
Just out of curiosity.
- ramd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 04:50 AM
04-15-2003 04:50 AM
Re: .login, .profile and .rhost
On rare occasion, an application will have to have access to .rhosts in particular. I learned by changing its permissions. OUCH!
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 04:55 AM
04-15-2003 04:55 AM
Re: .login, .profile and .rhost
Thanks
Zafar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 04:57 PM
04-16-2003 04:57 PM
Re: .login, .profile and .rhost
Actually I am new to this company, the server been there for long, I am asked to look into this matter by the audit department, so that was why I enquired.
Thanks