LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-24-2013, 10:54 PM   #1
marvinej
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Rep: Reputation: Disabled
Question User Permission Issues


I have a debian server setup to run a minecraft server. As root i setup a location for the server in /MCMA/Minecraft/

I then made a new user for admins to manage the server with for all intense and purposes lets call this user 'serveradmin'

first i set serveradmin home dir to /MCMA/Minecraft

then what i did was give chown to serveradmin of /MCMA/Minecraft/* using -r in the command.

This seemed to work but once serveradmin deletes a directory within his home or adds new files he no longer has permission to them. How can i fix this issue
 
Old 10-25-2013, 12:25 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
would be nice to go into details, or at least look for the real permissions. Who has rights to access the new files?
 
Old 10-25-2013, 12:29 AM   #3
marvinej
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Err i have access to login as all users and i also have root access. im still a linux noob so im just learning how to do everything. If you need any information just give me the commands to retrieve it and i can screen shot it.
 
Old 10-25-2013, 12:31 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
just add new files as you described (explain your commands) and show us how the permissions were set. Exactly.
 
Old 10-25-2013, 12:48 AM   #5
marvinej
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
I told you i gave serveradmin chown of the home directory i set for him so

chown -r serveradmin:ftpusers /MCMA/Minecraft/*


The result:

This seemed to work but once serveradmin deletes a directory within his home or adds new files he no longer has permission to them.


im not sure what more you want me to tell you. all the information is there.
 
Old 10-25-2013, 12:49 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
show us how did you add new files and how were the permissions set. How did you check "he no longer has permission to them"?
 
Old 10-25-2013, 12:58 AM   #7
marvinej
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
so here is what happens

1. Serveradmin has ownership of all files in /mcma/minecraft/

2. serveradmin deletes /mcma/minecraft/anyfile

3. serveradmin uploads a new /mcma/minecraft/anyfile

4. now server admin does not own that new file that he uploaded, instead its owned by root and he can no longer touch it.


so it goes

From: http://i.imgur.com/4A8Pk0Q.png

To: http://i.imgur.com/N3V4lQ1.png
 
Old 10-25-2013, 01:04 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
how this upload works?
 
Old 10-25-2013, 01:05 AM   #9
marvinej
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
with sftp
 
Old 10-25-2013, 01:07 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
how is this upload executed?
 
Old 10-25-2013, 01:09 AM   #11
marvinej
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
with filezilla via sftp... i don't think your heading in the right direction. the issue is with server permissions, not uploading issue client side.
 
Old 10-25-2013, 01:18 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
actually the files created by root (as far as I see), probably because of the settings/usage of sftp, but you gave almost no information just a few unusable words. You need to find out what's happened exactly and do not try to think about your wishes and thought.
You need to accept the fact, the result and you need to find out the steps how it was produced.
 
Old 10-25-2013, 01:20 AM   #13
marvinej
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
i told you everything i did tho and you just keep asking questions ive already answered... im so confused
 
Old 10-25-2013, 01:24 AM   #14
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
no, I asked to explain what have you done exactly and you only told sftp was used. That was insufficient. I need to know how how sftp configured, how the ftp was initiated (which user, ....) to be able to go further....
 
Old 10-25-2013, 02:00 AM   #15
marvinej
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
It was configured for a normal user login as ServerAdmin and not root
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Permission issues with lighttpd user on debian - what am I missing? deepcore Linux - Server 3 05-24-2012 07:29 AM
Help with user permission level--give access to a user 2 use 500 servers svani Linux - Newbie 2 06-17-2010 08:57 PM
User permission issues xtremeclones Linux - General 2 03-08-2007 10:45 AM
user permission issues with /dev/ (sound and cdrom) ngan_yine Slackware 3 11-03-2004 05:09 PM
Mount and User permission issues Aerlock Linux - Newbie 9 10-19-2003 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:50 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