Sponsored Content
Operating Systems SCO Need Help With System Recovery After HD Errors Post 302992159 by rbatte1 on Wednesday 22nd of February 2017 07:42:09 AM
Old 02-22-2017
Going back to the question about limiting FTP users, I regret that I don't have a SCO server available to test, however many unix OS variation have a file /etc/ftpusers which work in the reverse to what you might expect. It is a list of accounts that are not allowed to FTP into this server. It is slightly counter intuitive (to me at least Smilie) but I wrote a simple script that I run daily to read /etc/ftpusers.allowed and re-write /etc/ftpusers. It was something like this:-
Code:
cut -f1 -d":" /etc/passwd | grep -vf /etc/ftpusers.allowed > /etc/ftupusers

Would that help? You need to be careful that the input file doesn't have blank lines (which will match every record) or short user ids that are contained within longer ones. Perhaps you should make this a two step process:-
Code:
sed 's/^/\^/ ; s/$/\$/' /etc/ftpusers.allowed > /tmp/ftpusers.allowed
cut -f1 -d":" /etc/passwd | grep -vf /tmp/ftpusers.allowed > /etc/ftupusers


I hope that this is useful on SCO. Apologies if it's not. have a look at th emanual page for ftpd or whatever offers the service for you.

Kind regards,
Robin
This User Gave Thanks to rbatte1 For This Post:
 

8 More Discussions You Might Find Interesting

1. HP-UX

Automatic system recovery?

Hi all! I've a strange problem. I would use the GNU Make tool on HPUX 11.11. To archive this, i have compiled the sourcecode and renamed HP make in /usr/bin from make to make_old. Now i have make a softlink from /usr/local/bin/make (GNU version) to /usr/bin/make. All things here are ok, but... (1 Reply)
Discussion started by: coredump2003
1 Replies

2. UNIX for Advanced & Expert Users

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (0 Replies)
Discussion started by: mcastill66
0 Replies

3. AIX

make a recovery CD/DVD - system has no writable devices

Hi, Has anyone please got some advise as to how I can make a CD/DVD on an AIX 5.3 system so that it can be fully recoverd just by inserting the backed up system. The system that I need to recover has no writable devices, not even a tape drive (it wasn't specified by me btw). I am trying to... (0 Replies)
Discussion started by: stevek007
0 Replies

4. AIX

System recovery

Hi everyone I'm green AIX user or rather beginner (light green). Unfortunately I have to restore my system + data from scratch (things happen) and make it up and running. I've never done it before. Can someone of you provide me with link/procedure/instruction how to do it? Now I know only:... (3 Replies)
Discussion started by: fraydey
3 Replies

5. UNIX for Advanced & Expert Users

Data Recovery from file system overwritten with LVM.

Hey peeps, Here is somethin u might find interestin.... Is it possible to recover data from a partition which used to be an ext3 file sytem with some nice forgotten backups, which now is an lvm partion containg root partition of another OS. :) I couldn't create any mess better than this, can... (2 Replies)
Discussion started by: squid04
2 Replies

6. UNIX for Advanced & Expert Users

linux system recovery after overriding connect() by "ld.so.preload"

dear fellows; i have used ld.so.preload file to override connect() function, dynamic library overriding, it did worked really fine ...... but i went on to struck in a situation ... within the overrided connect() i have used printf once to see IP and Port to whom the connect request is being... (1 Reply)
Discussion started by: mzeeshan
1 Replies

7. UNIX for Advanced & Expert Users

fsck.gfs2 outputs "RG recovery impossible; I can't fix this file system"

I have a CentOS release 5.2 (Final)host running kernel 2.6.18-92.el5 with at raid 10 that had two mirrored drives fail. The drives were re-inserted and now the raid shows healthy (for now). I tried to mount but got an Input/output error. I then attempted a fsck: fsck.gfs2 -y /dev/vg_01/uss_vol... (0 Replies)
Discussion started by: king_hippo
0 Replies

8. Red Hat

Linux system hangs giving ntp errors

Hi folks, I am facing issue of my system (host1) getting hanged after throwing following ntpd messages. I am not able to ssh to the server there after. only option is to restart the host: Dec 29 02:58:51 host1 ntpd: time reset -0.207907 s Dec 29 02:58:51 host1 ntpd: synchronisation lost Dec 29... (0 Replies)
Discussion started by: SiddhV
0 Replies
FTPUSERS(5)						      BSD File Formats Manual						       FTPUSERS(5)

NAME
ftpusers, ftpchroot -- tnftpd(8) access control file DESCRIPTION
The ftpusers file provides user access control for tnftpd(8) by defining which users may login. If the ftpusers file does not exist, all users are denied access. A ``'' is the escape character; it can be used to escape the meaning of the comment character, or if it is the last character on a line, extends a configuration directive across multiple lines. A ``#'' is the comment character, and all characters from it to the end of line are ignored (unless it is escaped with the escape character). The syntax of each line is: userglob[:groupglob][@host] [directive [class]] These elements are: userglob matched against the user name, using fnmatch(3) glob matching (e.g, 'f*'). groupglob matched against all the groups that the user is a member of, using fnmatch(3) glob matching (e.g, '*src'). host either a CIDR address (refer to inet_net_pton(3)) to match against the remote address (e.g, '1.2.3.4/24'), or an fnmatch(3) glob to match against the remote hostname (e.g, '*.NetBSD.org'). directive If ``allow'' or ``yes'' the user is allowed access. If ``deny'' or ``no'', or directive is not given, the user is denied access. class defines the class to use in ftpd.conf(5). If class is not given, it defaults to one of the following: chroot If there is a match in /private/etc/ftpchroot for the user. guest If the user name is ``anonymous'' or 'ftp'. real If neither of the above is true. No further comparisons are attempted after the first successful match. If no match is found, the user is granted access. This syntax is backward-compatible with the old syntax. If a user requests a guest login, the tnftpd(8) server checks to see that both ``anonymous'' and ``ftp'' have access, so if you deny all users by default, you will need to add both ``anonymous allow'' and ``ftp allow'' to /private/etc/ftpusers in order to allow guest logins. /private/etc/ftpchroot The file /private/etc/ftpchroot is used to determine which users will have their session's root directory changed (using chroot(2)), either to the directory specified in the ftpd.conf(5) chroot directive (if set), or to the home directory of the user. If the file does not exist, the root directory change is not performed. The syntax is similar to ftpusers, except that the class argument is ignored. If there's a positive match, the session's root directory is changed. No further comparisons are attempted after the first successful match. This syntax is backward-compatible with the old syntax. FILES
/private/etc/ftpchroot List of normal users who should have their ftp session's root directory changed by using chroot(2). /private/etc/ftpusers This file. /usr/share/ftpd/examples/ftpusers A sample ftpusers file. SEE ALSO
fnmatch(3), inet_net_pton(3), ftpd.conf(5), tnftpd(8) BSD
February 28, 2003 BSD
All times are GMT -4. The time now is 04:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy