LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   get rid of this (https://www.linuxquestions.org/questions/linux-software-2/get-rid-of-this-41042/)

dkc_ace 01-10-2003 08:37 PM

get rid of this
 
http://dkc1.dnsq.org/notshow/smaller.jpg

in wu-ftpd how do i get it where them .kde files and such dont show up?


its not safe to delete the files is it?

trickykid 01-11-2003 02:33 AM

Those are configuration files for your user. Like .bashrc and .bash_profile are what deterime settings and such for your user after they've logged in. I would leave these files alone.

Robert0380 01-11-2003 03:54 AM

DO NOT DELETE THEM, especially no the .bashrc and .bash_profile another thing, i hear wu-ftp isnt a very secure thing, maybe use sftp instead. So from the Windows box you would do a secure FTP (i use SecureFX but it has a limited trial). i think its like ftp over ssl, but basically i'd avoid telnet in favor of ssh and i'd avoid ftp, wu-ftp in favor of sftp

dkc_ace 01-11-2003 12:31 PM

Quote:

Originally posted by Robert0380
DO NOT DELETE THEM, especially no the .bashrc and .bash_profile another thing, i hear wu-ftp isnt a very secure thing, maybe use sftp instead. So from the Windows box you would do a secure FTP (i use SecureFX but it has a limited trial). i think its like ftp over ssl, but basically i'd avoid telnet in favor of ssh and i'd avoid ftp, wu-ftp in favor of sftp
well all im trying to do is setup ftp accounts for my friends to log onto my FTP server get some games or whatever they want and i will have some backup patchs for UT and UT2k3 for our clan to get if they need it. would Proftpd work better?

and the other thing i was wondering is would i be able to setup accounts and and have user1 user2 be able to access the game folder but user3 couldnt go into the dir? With proftpd?

MasterC 01-11-2003 01:11 PM

Ok, I've been reading your various posts around regarding FTP, maybe you could sum it all up, exactly what you are wishing to do via FTP and then someone could sorta spell out a path or what to do, or suggestions on how to go about it.

Here's how I'd set things up for the user1 and user2 deal...

Users on your system can access their home directories if you have the DefaultRoot set in your /etc/proftpd.conf file. However, if you wish for these users to have a different "home" directory from login, you could easily change that by leaving the defaultRoot entry, but editing their entries in /etc/passwd, something like:
user1:x:1000:100::/home/games/UT2k3:/bin/false
user2:x:1001:100::/home/games/UT2k3:/bin/false

This would make it so that the user would be confined to this home directory, which happens to be /home/games/UT2k3 and no other user that doesn't have this as their home directory can access it via ftp.

Ok, now what about this 3rd user that you want to have access to the game folder, well you could create something like:
user3:x:1002:100::/home/games/UT:/bin/false

So that this user would be restricted to /home/games/UT and couldn't go outside of that directory (subdirectories yes, unless these are not accessible via chmod -x).

HTH

Cool

dkc_ace 02-04-2003 11:41 AM

Quote:

Originally posted by MasterC
Ok, I've been reading your various posts around regarding FTP, maybe you could sum it all up, exactly what you are wishing to do via FTP and then someone could sorta spell out a path or what to do, or suggestions on how to go about it.

Here's how I'd set things up for the user1 and user2 deal...

Users on your system can access their home directories if you have the DefaultRoot set in your /etc/proftpd.conf file. However, if you wish for these users to have a different "home" directory from login, you could easily change that by leaving the defaultRoot entry, but editing their entries in /etc/passwd, something like:
user1:x:1000:100::/home/games/UT2k3:/bin/false
user2:x:1001:100::/home/games/UT2k3:/bin/false

This would make it so that the user would be confined to this home directory, which happens to be /home/games/UT2k3 and no other user that doesn't have this as their home directory can access it via ftp.

Ok, now what about this 3rd user that you want to have access to the game folder, well you could create something like:
user3:x:1002:100::/home/games/UT:/bin/false

So that this user would be restricted to /home/games/UT and couldn't go outside of that directory (subdirectories yes, unless these are not accessible via chmod -x).

HTH

Cool

i think i got that but for some reason i cant get rid of them .kde files. whenever i setup an FTP it adds them and i change the home dir and it adds them in the new home dir. i dont get it.

MasterC 02-05-2003 12:17 AM

How are you adding the users? Via KDE Control Center? If so, that'd make sense, however if you are using useradd or adduser commands, that is quite strange. Either way, one would think it'd be ok to remove the .kde (and all .files) from these users' home directories AS LONG AS THEY WILL NEVER ACTUALLY BE USING THE SYSTEM for anything besides FTP. If these users are ever going to ssh into the box, or actually be on your box in any other form other than FTP access, I'd think leaving those files there will be a good idea.

Cool

dkc_ace 02-12-2003 01:00 PM

Quote:

Originally posted by MasterC
How are you adding the users? Via KDE Control Center? If so, that'd make sense, however if you are using useradd or adduser commands, that is quite strange. Either way, one would think it'd be ok to remove the .kde (and all .files) from these users' home directories AS LONG AS THEY WILL NEVER ACTUALLY BE USING THE SYSTEM for anything besides FTP. If these users are ever going to ssh into the box, or actually be on your box in any other form other than FTP access, I'd think leaving those files there will be a good idea.

Cool

uhhh for some reason useradd or adduser does not work. i was su so i dont have any clue y it wouldnt be working.

MasterC 02-12-2003 01:07 PM

Try locating then:
whereis useradd
locate useradd
find useradd

Hopefully one of these will pull up a location to the app. Mine currently resides in /usr/sbin/useradd

I prefer adduser though, which is located in /usr/sbin/adduser (this is on Slack 8.1)

Cool

MasterC 02-12-2003 01:10 PM

What distro are you running currently? If your distro (and you haven't forced) doesn't use Shadow passwords or anything encrypted like that, you should be able to just open up /etc/passwd file and add users by hand. Follow the syntax already there, make sure you have all the : in place. The 'x' is a placeholder for the actual password. After you've added the entry for that user, as root type:
passwd username
And it will force a password change on that user.

HTH

Cool


All times are GMT -5. The time now is 08:23 PM.