root and /usr


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers root and /usr
# 1  
Old 07-27-2011
root and /usr

Can anybody tell me if there is a security issue with root using/pointing to /usr, like for example /usr/bin/ksh? Why not point to /bin/ksh instead?
Any risk involved doing that?
Thanks
Norgaard
# 2  
Old 07-27-2011
Are the two files using the same version of ksh? Are the permissions on the file set the same? Could either file be changed by a non-root user due to the permissions on the directories or files?
# 3  
Old 07-28-2011
Same version and same rights. The question is/was meant to be more fundamental as in, is it really a good thing to let root point to anything in /usr? By default, I mean. My understanding always was that root should not point to /usr to be 100% sure that changes meant to impact other users do not impact root. maybe it is "religion", but in general I'd have root go to any application and utility through an as direct and "pure" access as possible. In this case, my gut feeling is that /bin/ksh is better than /usr/bin/ksh. Obviously the 2 can have the same rights and it is even possible that the /bin version could be older than the /usr/bin version. That would be another problem.
# 4  
Old 07-28-2011
Depends on where you're working, I imagine. At my current workplace, it doesn't matter -- we have binaries in many varied places (/opt, /bin, /usr, /home, etc.).
# 5  
Old 07-28-2011
Well, I guess that that means "no particular risk"?

Last edited by Norgaard; 07-28-2011 at 11:58 AM..
# 6  
Old 07-28-2011
I wouldn't imagine it as a risk, no. Just against policy and, sometimes, sanity Smilie
# 7  
Old 07-28-2011
It's not a security issue -- just having a file in /usr/ doesn't magically make it vulnerable, what matters is the permissions -- but it could be a maintenance problem. When /usr is a partition, and it fails to mount for some reason, root won't be able to login to fix it.
This User Gave Thanks to Corona688 For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. OS X (Apple)

OSX: ./Users/myname OR. /usr/myname ? 1) what is the truth on UNIX ./usr/ directory.

OSX uses its own directory strecture on the BSD core, for example /Users/Bob_Alice/. but legacy Unix structure /usr/... remains. Adding confustion, some Unix books say /usr/ was never intended for specific users. and others show it being used for Bor or Alice. I am not sure where to put my third... (5 Replies)
Discussion started by: michaelayres
5 Replies

2. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

3. AIX

Upgrade to TL8 failed: bos.net.NFS.client 6.1.8.1 (usr: COMMITTED, root:

dears i am trying to upgrade the TL from TL7 to TL8 and i facing this issue AIX6.1 << End of Success Section >> +-----------------------------------------------------------------------------+ BUILDDATE Verification ...... (2 Replies)
Discussion started by: thecobra151
2 Replies

4. Solaris

Migration of system having UFS root FS with zones root to ZFS root FS

Hi All After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies

5. Solaris

Unable to create or delete a directory in /usr with root user

Hi All, I am trying to uninstall jdk 1.5 from my Solaris 10 64 bit but some how was not successful.so tried to delete the folder of jdk from /usr but its throughing error as: Unable to remove directory jdk: Read-only file system Even I tried to create a dir in /usr but its not allowing me... (4 Replies)
Discussion started by: Pshah
4 Replies

6. Solaris

how to login with ssh to remote system with out applying the remote root/usr password

how to login with ssh to remote system with out applying the remote root/user password with rlogin we can ujse .rhosts file but with ssh howits possible plz guide (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

7. Solaris

difference between "root" and "usr" packages

Hi, could someone pls enlighten me on the difference between the "root" package and "usr" package? Like in this example: pkginfo -l SUNWGtku | grep -i desc DESC: GTK - The GIMP Toolkit (Usr) and pkginfo -l SUNWGtkr | grep -i desc DESC: GTK - The GIMP Toolkit (Root)... (6 Replies)
Discussion started by: masloff
6 Replies

8. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

9. UNIX for Dummies Questions & Answers

Run non-root script as root with non-root environment

All, I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies
Login or Register to Ask a Question