Read authorization for everybody on sub-directory owned by root


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Read authorization for everybody on sub-directory owned by root
# 1  
Old 11-06-2013
Read authorization for everybody on sub-directory owned by root

Hello.

On my family laptop, I have a directory named /local.
It is owned by root.
I want to create a sub-directory named documents ( /local/documents ).
I want to exclude exec for every body in that directory
I want every authenticated linux user can create a sub directory ( ie : /local/documents/openoffice ) and put in it any documents ( /local/documents/openoffice/WG3600-WriterGuideLO.pdf ) so that every authenticated linux user can read it. Only the owner can delete files that belong to him.
Any help is welcome.

opensuse 12.3
# 2  
Old 11-06-2013
If you have LVM in place there (and some free space in the VGs), then you could create new filesystem, then mount it under /local/documents with "noexec" option.
# 3  
Old 11-06-2013
Quote:
Originally Posted by bartus11
If you have LVM in place there (and some free space in the VGs), then you could create new filesystem, then mount it under /local/documents with "noexec" option.
/local is sda13; 40Go; and is used at 25%
/my_multimedia is sda14; 60Go and is use at 25%

Is it possible to use part of each sda13 and sda14 to create a new disk with LVM. ?

Is it possible to use LVM on non-empty physical partition ( sdax ) ?

if not, I suppose that at the same time
1°) I must move /local, /my_multimedia somewhere and umount sda13 and sda14
2°) Create a Volume Group over sda13 et sda14
3°) Create 3 LVM logicals volumes : one for /local, one for /my_multimedia and one for /my_documents ( formerly /local/documents )
4°) format these new partitions
5°) mount the new partition
6°) Restore moved data

Any help is welcome
# 4  
Old 11-07-2013
Quote:
Originally Posted by jcdole
Is it possible to use part of each sda13 and sda14 to create a new disk with LVM. ?

Is it possible to use LVM on non-empty physical partition ( sdax ) ?
As far as I'm aware it is not possible.
# 5  
Old 11-11-2013
Quote:
Originally Posted by bartus11
As far as I'm aware it is not possible.
So if not, I suppose that at the same time
1°) I must move /local, /my_multimedia somewhere and umount sda13 and sda14
2°) Create a Volume Group over sda13 et sda14
3°) Create 3 LVM logicals volumes : one for /local, one for /my_multimedia and one for /my_documents ( formerly /local/documents )
4°) format these new partitions
5°) mount the new partition
6°) Restore moved data

Could you confirm that procedure.

By the way it seems to be the same work if :
1°)move /local, /my_multimedia somewhere and umount sda13 and sda14
2°)delete sda13 et sda14
3°) Re Create sda13 and sda 14 with smaller size for /local; /my_multimedia
4°) create sda23 ( sda 15-22 exists) : for /my_documents ( formerly /local/documents )
4°) format these new partitions
5°) mount the new partition
6°) Restore moved data

Any comments is welcome
# 6  
Old 11-11-2013
Both approaches will work for your current situation. Going with LVM has the advantage of being "future-proof". If you will for example leave some space in the VG, you will be able to create another filesystem if needed. You will also be able to shrink filesystems if it turns out that you need to create new filesystem and there is no free space in VG (but there is unused space on the filesystems created in that VG).
This User Gave Thanks to bartus11 For This Post:
# 7  
Old 11-12-2013
[SOLVED]Read authorization for everybody on sub-directory owned by root

Thank you for taking times to help me.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Create zip file from root owned fstab

I want to zip up my fstab file for backup purposes. This does not work because of permission issues. cd /etc/ zip -u fstab.zip fstab Can I use this with zip? echo xxx | sudo -S or change fstab owner to me? (3 Replies)
Discussion started by: drew77
3 Replies

2. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies

3. Web Development

Apache write permission issues to another user owned directory

Hi I am trying to make a web program which is command line equivalent. i have done the coding in cgi program in perl and html for basic forms to take inputs. when i ran the program from web application i see permission denied messages. after analyzing i found apache is running as wwwrun which... (2 Replies)
Discussion started by: rakeshkumar
2 Replies

4. AIX

find command to list all the 777 files and directories owned by root user

Hi I'm logged in to an AIX box now and we need to do an audit on this box. cbssapr01:# pwd / Which command will show all the files and directories owned by root user with permissions as 777 ? (8 Replies)
Discussion started by: newtoaixos
8 Replies

5. AIX

AIX 5.x OpenSSH choot and non-root owned

Good day. I was looking at implementing a chroot environment using openssh. I know I can use the sshd_config file and dictate that it is to use chroot for a specific directory for a user/group. However, the issue with this is that it is has to be root owned. To my knowledge, there is no mount... (0 Replies)
Discussion started by: smurphy_it
0 Replies

6. UNIX for Dummies Questions & Answers

user able to delete directory owned by root

I've tried to figure this out. I'm only about 6 mos into my AIX admin duties, but I've got a "security" problem I can't figure out. I've created a sub directory as follows: drwx------ 2 root system 256 Apr 13 16:02 mike I've logged in another session with the following user: $ id... (2 Replies)
Discussion started by: mpheine
2 Replies

7. UNIX for Dummies Questions & Answers

How to find root owned world writable files?

Being a system administrator i came across a statement as " Excluding temporary directories /tmp and /var/tmp, no root owned files should be in world writable directories" While the above statement may look straight forward but how would i check if there are any such directories in the... (7 Replies)
Discussion started by: pinga123
7 Replies

8. UNIX for Dummies Questions & Answers

How to display only Owner and directory/sub directory names under particular root

hai, I am new to Unix, I have a requirement to display owner name , directory or sub directory name, who's owner name is not equal to "oasitqtc". (here "oasitqtc" is the owner of the directory or sub directory.) i have a command (below) which will display all folders and sub folders, but i... (6 Replies)
Discussion started by: gagan4599
6 Replies

9. OS X (Apple)

root/admin authorization and PackageMaker

I am building an installable package (.pkg) with PackageMaker 1.1.11 (that's the one that comes with Panther). The package is for installing things both to /Applications and to some folders in /Library (/Library/StartupItems and a new folder that I'm putting in /Library). I do (obviously) not... (4 Replies)
Discussion started by: ropers
4 Replies

10. Shell Programming and Scripting

Perl CGI to access / edit "root" owned config files

I am trying to write a CGI program which accesses UNIX configuration files and changes them as required. The thing is, I don't want the CGI program to be "root" owned - it's Perl based! Is there any way that the Perl CGI program can request a username and password - and then use this to... (1 Reply)
Discussion started by: WIntellect
1 Replies
Login or Register to Ask a Question