[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnump3d-users] help on users and file permissions

From: Brandon Kuczenski
Subject: Re: [Gnump3d-users] help on users and file permissions
Date: Tue, 9 Oct 2007 21:46:44 -0400 (EDT)

On Wed, 10 Oct 2007, Brendan Reid wrote:

Hi gnumpers,

I am sure I am being really silly but am realling struggling to set the
right permissions and user on my NSLU2 (small linux computer) to operate
gnump3d properly.

If I set user = root then all is ok

Your permissions look appropriate.. what is the symptom, i.e. what is not operating properly?

The r-s permissions for directories mean that files created in that directory inherit their group setting from the directory. So for a directory with permissions drwxr-sr-x, ownership nobody:everyone (wow, what an oxymoron in that one!), a file created in the directory would automatically have group everyone.


i have
- .conf set to user = nobody
- nobody is defined as uid=99(nobody) gid=501(everyone)
- all the files are owned by chown -R bren:everyone
- all the files are -rw-r--r--
- all the directories are drwxr-sr-x

Can anyone check this and advise - I am not used to setting up Linux users
and groups
What does the r-s for group mean for directories - it was set with this
command as part of a short script - see end of this post

Is this the problem?


#! /bin/sh
# Diversion script: to set file permissions for the root gnump3d music
server directory
# 1. Start by globaly setting all files and directories with owner and group
set to root.
# Note that some users prefer to use different user and groups
# to improve server security, such as nobody and everyone
chown -R bren:everyone /home/bren/gnump3d
# 2. Then globaly chmod all files and directories to permission 644
chmod -R 0644 /home/bren/gnump3d
# 3. Then chmod all Directories to permission 2755
find /home/bren/gnump3d -type d -exec chmod 2755 {} \; -print

reply via email to

[Prev in Thread] Current Thread [Next in Thread]