LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-10-2003, 09:37 PM   #1
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Rep: Reputation: 30
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?

Last edited by dkc_ace; 01-10-2003 at 09:56 PM.
 
Old 01-11-2003, 03:33 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
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.
 
Old 01-11-2003, 04:54 AM   #3
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
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
 
Old 01-11-2003, 01:31 PM   #4
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
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?
 
Old 01-11-2003, 02:11 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 02-04-2003, 12:41 PM   #6
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
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.
 
Old 02-05-2003, 01:17 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 02-12-2003, 02:00 PM   #8
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
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.
 
Old 02-12-2003, 02:07 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 02-12-2003, 02:10 PM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Should I get rid of XP? NCC-1701&NCC-1701-D Linux - Newbie 12 06-13-2005 09:41 AM
where did it come from, and how do i get rid of it? scarryharry Slackware - Installation 2 10-08-2004 02:10 PM
What can I get rid of? NKYG Linux - Software 6 06-17-2004 03:19 PM
Get rid of ip sanjibgupta Linux - Networking 3 06-07-2004 04:57 AM
Get rid of XP Pedroski Linux - Hardware 5 05-25-2004 11:44 AM


All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration