Forum Home
Press F1
 
Thread ID: 31049 2003-03-10 07:12:00 Linux questions: 2 screens, pure-ftp Clueless (181) Press F1
Post ID Timestamp Content User
127113 2003-03-10 07:12:00 How hard is it to run 2 screens? I've just been given a new screen, and seeing i now have 2 on the desk, i thought i might give 2 a go!

Does anyone know of hand where the .conf files for pure-ftp live? After setting it up, i've lost them. What i must do to (if possible) make it so that someone logging in has access to /home/there-little-bit only and not any of the system files? At the moment a user acessing my machine can't get into other peoples /home/files but it can let a user into into anything other than home. Messing with the permissions in say "/user" tended to make things inoperable.

.Clueless
Clueless (181)
127114 2003-03-10 07:39:00 > How hard is it to run 2 screens? I've just been given
> a new screen, and seeing i now have 2 on the desk, i
> thought i might give 2 a go!

Not too bad if you've hacked at your XF86Config file before . All I did was follow the Xinerama howto .

Free tip: If one of the cards is an S3 Trio use the vesa driver . The "s3" driver sucks .

I gave up with it because I prefer the virtual desktops (moving . . . head . . . too . . . much . . . effort :-)) .
bmason (508)
127115 2003-03-10 21:02:00 Clueless,

You could try following this for restricting access

- '-a <gid>': Authenticated users will be granted access to their home
directory and nothing else (chroot) . This is especially useful for users
without shell access, for instance, WWW-hosting services shared by several
customers. Only member of group number <gid> will have unrestricted access
to the whole filesystem. So add a "staff", "admin" or "ftpadmin" group and
put your trusted users in. <gid> is a NUMERIC group number, not a group name.

Note: 'root' always has full filesystem access.

If you want to chroot() everyone, but root, use the following flag:

- '-A': chroot() everyone, but root.

Extracted from the pure-ftp documentation (pureftpd.sourceforge.net) :D
As far as finding the .conf it would be best to do a search but it is most likely in etc
Gorela (901)
127116 2003-03-10 23:22:00 Multiple monitors with an nVidia card is dead easy, search google for:
Download YANC

Great proggy for doing TV-O too!

As for your S3 cards . . . 2K/XP doesnt like them being secondary for some reason, so keep that in mind, there's something to do with the S3 cards . . . Dunno if its affected Linux users though :-)

HTH



Chilling_Silence
Chilling_Silence (9)
127117 2003-03-11 00:55:00 > I gave up with it because I prefer the virtual
> desktops (moving . . . head . . . too . . . much . .
> . effort :-)) .

hahaha sounds like me . I'll even not eat because I'm too lazy to move and get some .
-=JM=- (16)
127118 2003-03-11 02:27:00 > As for your S3 cards . . . 2K/XP doesnt like them being
> secondary for some reason, so keep that in mind,
> there's something to do with the S3 cards . . . Dunno if
> its affected Linux users though :-)

Same with win98 + S3 Trio . Its because the driver needs to be updated to handle multi-monitors .

The linux driver for the Trio has major issues with xinerama because it sucks in general . I found even running it seperatly was buggy .

BTW, if you don't want one big desktop, you can run two seperate X servers .
bmason (508)
127119 2003-03-11 02:55:00 So if Im wanting to do this myself.. I should look up xinerama, and what's this about 2x XFree sessions??? Chilling_Silence (9)
127120 2003-03-14 05:32:00 Gorela,
I'm totally out of my depth here . but hey, i learnt to swim by falling of a boat, why not learn Linux the same way???

I tried
- '-A': chroot() everyone, but root .
and here is the result

sam:~ # - '-A': chroot() everyone, but root .
bash: syntax error near unexpected token `chroot()'

I'm quite happy if no-one can get ftp access to anything out side of the home directory, this is what i wish to acheive .

my other line of attack was this, taken from the pure-ftp . conf file:

# If you want to run Pure-FTPd with this configuration
# instead of command-line options, please run the
# following command :
#
# /usr/sbin/pure-config . pl /usr/etc/pure-ftpd . conf


# Cage in every user in his home directory (default=yes, uncommented)

ChrootEveryone yes



# If the previous option is set to "no", members of the following group
# won't be caged . Others will be . If you don't want chroot()ing anyone,
# just comment out ChrootEveryone and TrustedGID .

# TrustedGID 100


(default=yes, uncommented) was my little add-in for safety
i ran /usr/sbin/pure-config . pl /usr/etc/pure-ftpd . conf and then realised i would have to run /usr/sbin/pure-config . pl /etc/pure-ftpd . conf instead as the . conf file was not where the command specified .

Still no joy, i killed and restarted the server, and logged in from vanessa (my 'doze PC) and was prompty able to look through most of the system as before, although i have atleast managed to keep users out of each others /home directory by playing with the permissions .

OK . . I'm lost

. Clueless
Clueless (181)
127121 2003-03-19 23:56:00 Gorela,

In responce to your question .
>>OT PS When you installed Pureftp, what options did you use? Or did you just use . /configure with no options?

I dont know, i have this bad habit of installing stuff at night when i should be resting, and not always remembering exactly how i did it .

I am considering a careful reinstall complete with manual renaming of the original config files .

. Clueless
Clueless (181)
1