LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-05-2004, 04:52 PM   #1
YBA^[x]
Member
 
Registered: Apr 2004
Location: Denmark
Distribution: Slackware 10.2
Posts: 121

Rep: Reputation: 15
changeing permissions for a folder + subfolders and files ?


Hey.

I thought I'd be doing something clever, turns out I might not have after all. I chose to install and configurate quite a few apps as root in /home/apps/, thinking that all users would have access to these apps with the settings I made. This is not so. Users do have access to the apps but settings are default. Is there an easy way to change the permissions for /home that will affect all files and subfolders in /home ? I'm hoping that this way users will be able to run the apps with the settings I made as root, because I really do not want to go through the bore of configurating all the apps again for every single user.

Regards.
 
Old 08-05-2004, 05:31 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
man chown
man chmod

they both have the -R option - means do someting recursively.
 
Old 08-06-2004, 02:36 AM   #3
YBA^[x]
Member
 
Registered: Apr 2004
Location: Denmark
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks. What permissions should be set ? 777 ?
 
Old 08-06-2004, 02:46 AM   #4
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
i think no. 777 includes write permission. read and execute should do. go with 555.
 
Old 08-06-2004, 02:47 AM   #5
barisdemiray
Member
 
Registered: Sep 2003
Location: Ankara/Turkey
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
Quote:
Originally posted by YBA^[x]
Thanks. What permissions should be set ? 777 ?
You should not grant write permission to executables owned by root. One user can do nasty things on the file that can be executed by other users ``including root''.
 
Old 08-06-2004, 02:49 AM   #6
YBA^[x]
Member
 
Registered: Apr 2004
Location: Denmark
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
So doing this:

chown -R 555 /home

or

chmod -R 555 /home

should do the trick ?

Last edited by YBA^[x]; 08-06-2004 at 03:08 AM.
 
Old 08-06-2004, 03:17 AM   #7
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
you mean chmod -R 555 /home/apps? that will work.
chown changes the owning user and/or group of the files. so, you might want to do: chown -R root:root /home/apps. that would make /home/apps and its files and dirs belong to the user root and the group root. that, and the chmod command, will prevent other users from modifying /home/apps.
 
Old 08-06-2004, 04:07 AM   #8
YBA^[x]
Member
 
Registered: Apr 2004
Location: Denmark
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
I'll try again. From my first post in this thread:

I'm hoping that this way users will be able to run the apps with the settings I made as root, because I really do not want to go through the bore of configurating all the apps again for every single user.

How can I solve this?
 
  


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
Permissions propagating to subfolders & files linus Linux - General 2 06-21-2007 12:58 PM
Default permissions of files and folder maginotjr Slackware 2 07-29-2005 03:52 AM
need a script to delete all files from a folder and subfolders cccc Programming 1 03-04-2005 10:54 AM
How to make JHEAD work on all subfolders within a folder SupaDucta Linux - Newbie 0 11-26-2004 06:02 PM
default files and folder acl permissions Baltasar Fedora 4 08-30-2004 12:50 PM


All times are GMT -5. The time now is 07:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration