LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-30-2010, 09:42 AM   #1
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Rep: Reputation: 3
Linux FTP/ Normal User Settings


Ah Hello.

I run a Game Server through Swift Panel on my Cent OS 5.3
I have installed proftpd for my User who accesses the game files. I run a mod on the game server and I don't want to let the FTP user download it or copy it with him. Means, I want to keep it safe.

Suppose "srv200" is the username. I assigned permissions on this user normally like xxx so that it cannot read/write but execute it. The Game Servers runs on this same user. But now what happens is this, FTP works fine and the user is not allowed to read/write but my mod isn't executed when I run the game server. Maybe because execution permissions are not there.


So what I want is, I just want to apply these permissions on FTP so that my server can run but not on the normal user permissions.
 
Old 07-01-2010, 03:03 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I think the only way would be to remove read and execute from the directory containing the file so s/he can't traverse - as long as they're not the owner of the directory

eg:

Code:
[me@xxxxxx tmp]$ ls -ld /tmp/test
drwx------. 2 root me 4096 2010-06-26 14:07 /tmp/test
[me@xxxxxx tmp]$ cd /tmp/test
bash: cd: /tmp/test: Permission denied
 
Old 07-02-2010, 01:57 AM   #3
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Well.

I had tried that already . Since the game server has to run under the same user so removing the read/exec permissions causes the mod not to run.

There must be some other way like it should apply different permissions on the FTP user rather than normal user
 
Old 07-02-2010, 02:45 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
The only other way I can think of is to disable all downloads .. with vsftpd you can use 'download_enable=NO' ... this may be a bit restrictive though
 
Old 07-02-2010, 11:20 AM   #5
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by kbp View Post
The only other way I can think of is to disable all downloads .. with vsftpd you can use 'download_enable=NO' ... this may be a bit restrictive though
Yes that's quite restrictive, not a bit. Like people should be able to download some files at-least. Like the configs.

So some other way
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Wireless access in normal user mode msskiran Linux - Networking 3 06-15-2009 11:08 PM
Do ftp using normal user (not root) ? shipon_97 AIX 2 12-27-2007 01:45 PM
(Linux Admin - Want to know how to change the normal user to Administrator ) teluguswan Linux - Security 16 07-06-2006 11:54 PM
Can't long into linux as a normal user, help! m0rt3r Linux - Software 13 07-06-2006 09:23 AM
error with mounting samba share on linux as normal user dwof Linux - Software 7 08-13-2003 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:06 AM.

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
Open Source Consulting | Domain Registration