Sponsored Content
Full Discussion: please help with openbsd 2.9
Top Forums UNIX for Dummies Questions & Answers please help with openbsd 2.9 Post 3123 by Neo on Saturday 23rd of June 2001 10:03:54 AM
Old 06-23-2001
Code:
-rwxr-xr-x   1 root     root         7736 Mar 21  2000 libutil-2.1.3.so*
lrwxrwxrwx   1 root     root           16 Aug 19  1994 libutil.so.1 -> libutil-2.1.3.so*

The example above is from my /lib directory on one of my servers. Notice that the shared library file is libutil-2.1.3.so, which was the current version when I did my installation. It might be libutil-2.1.5 now (for all I know Smilie ) because shared lib (like all dynamic code) changes frequently to add features and to fix bugs in the code.<P>
However, all code that used the shared library must have a symbol or token to represent the library, this is normally something like libutil.so.X. Normally libutil.so.3 will work in code designed for libutil.so.2 (but not always!). <P>
So, when you install a new library, for example libutil-3.1.1 you must create a symbolic link (as required). In the example above, you might do an:

Code:
ln -sf libutil-3.1.1.so libutil.so.1

This might not be enough, because newer code might look for the token libutil.so.3 !! So, you also must do:

Code:
ln -sf libutil-3.1.1.so libutil.so.3

Which creates another symbolic link, as required. <P>
<A HREF=http://forums.unix.com/showthread.php?threadid=513&highlight=symbolic+link>'what is a symbolic link?' (the question) was discussed here</A>
<P>
Fixed typo (thanks MIB!)
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Maxtor vs. OpenBSD

Can't setup OpenBSD 3.4 with Maxtor Diamond Plus 9 80Gb ATA/133 HDD... Install process stops at hardware initialize, before installing... :confused: Any Comments... Thanks (2 Replies)
Discussion started by: bsdave
2 Replies

2. BSD

Snort on openbsd

Im trying to gather some info to set up snort on openbsd 3.2, has anyone out there managed to get it up and running ? My initial attempts seem to be quite below par (4 Replies)
Discussion started by: malcontent
4 Replies

3. BSD

openbsd : cannot login

hi OK. I don't know exactly what I did to system! The system is OpenBSD 3.5. It is 200MMX, 16MB ram 1.2 + 2.4 GB HDD. The system was running well. But a few days ago I try to unpack a big tar.gz file and the system uses most the cpu and ram for this. While the system unpacking the file I try to... (4 Replies)
Discussion started by: fnoyan
4 Replies

4. BSD

OpenBSD security

OpenBSD is best OS in the world! - I'm talking about security :) After 10 years popularity in OpenBSD, was founded just!!!!!!!!!!!!! just one security hole! You can download OpenBSD from there . However, do you know a better OS? (1 Reply)
Discussion started by: zylwyz
1 Replies

5. BSD

setting up OpenBSD 4.0

ok these questions may be a little silly but I just started using OpenBSD as I came from Linux... 1. How do I make my desktop in X all snazzy like, I have wallpapers that need to be used. while I admit it will mainly be used for things I wont need a wallpaper for, you just never know :p, im... (4 Replies)
Discussion started by: Siphter
4 Replies

6. BSD

OpenBSD and wireless

I've just installed OpenBSD on my laptop (IBM Thinkpad T42) and since this is my first time with wireless networking in OpenBSD I'm a bit lost. What I would like to do is connect to a wireless network using WEP or WPA. Where do I place the key and essid? (3 Replies)
Discussion started by: Timmy66
3 Replies

7. BSD

RAIDing openbsd 4.2

Hello! Can anyone tell me how to make software RAID1 on openbsd 4.2. I try by some manuals but have no results.Maybe is somewhere good manual directly to openbsd 4.2 version? tnx (1 Reply)
Discussion started by: kasparens
1 Replies

8. BSD

Trying to get into OpenBSD

I am an eight year Linux user and after getting into an argument with someone about OpenBSD overiding my theory that OS security is 50% OS and 50% admin skill, I decided to try OpenBSD for myself. I've tried BSDs before and haven't been able to get into them for day to dy use, but I am going to... (7 Replies)
Discussion started by: deckard
7 Replies

9. BSD

openbsd-pf

hello , I wondered if anyone could assist me in writing a simple packet filter firewall on my OpenBSD v4.5. All I intend doing is to have two firewalling machine on a separate network : 192.168.1.1 ext_if = xl0 (dhcp) // Internet interface int_if=xl1 // Internatl interface ... (0 Replies)
Discussion started by: mattjam
0 Replies

10. BSD

OpenBSD pf problems

I am having troubles with this pf configuration, it seems when loaded nothing can access my server on the internal interface for the LAN, I cannot see why, and it's pretty much based off the very standard example in the OpenBSD faq. When I unload the configuration, I can access the DNS server on... (0 Replies)
Discussion started by: John Tate
0 Replies
_SECURE_PATH(3) 					   BSD Library Functions Manual 					   _SECURE_PATH(3)

NAME
_secure_path -- determine if a file appears to be secure LIBRARY
System Utilities Library (libutil, -lutil) SYNOPSIS
#include <sys/types.h> #include <libutil.h> int _secure_path(const char *path, uid_t uid, gid_t gid); DESCRIPTION
This function does some basic security checking on a given path. It is intended to be used by processes running with root privileges in order to decide whether or not to trust the contents of a given file. It uses a method often used to detect system compromise. A file is considered 'secure' if it meets the following conditions: 1. The file exists, and is a regular file (not a symlink, device special or named pipe, etc.), 2. Is not world writable. 3. Is owned by the given uid or uid 0, if uid is not -1, 4. Is not group writable or it has group ownership by the given gid, if gid is not -1. RETURN VALUES
This function returns zero if the file exists and may be considered secure, -2 if the file does not exist, and -1 otherwise to indicate a security failure. The syslog(3) function is used to log any failure of this function, including the reason, at LOG_ERR priority. SEE ALSO
lstat(2), syslog(3) HISTORY
Code from which this function was derived was contributed to the FreeBSD project by Berkeley Software Design, Inc. BUGS
The checks carried out are rudimentary and no attempt is made to eliminate race conditions between use of this function and access to the file referenced. BSD
May 2, 1997 BSD
All times are GMT -4. The time now is 12:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy