LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2013, 05:41 AM   #1
linux_neophyte
LQ Newbie
 
Registered: Jan 2009
Posts: 15

Rep: Reputation: 0
file - folder permission issues


Hi all,

I have two users, one is an application user, through application is installed and one is a readonly user which is used by users to view log files.

There is an repetitive issue where I have to give permission to certian application logs to 755 recursively to be able to be viewed by user readonly.

Quote:
apps user:


id
uid=60000(apps) gid=8500(dba) groups=8500(dba)

umask
0022


ls -l

-rwxr-xr-x 1 apps dba 630339 Oct 11 15:59 server.log

new files created with this user

touch a; ll a
-rw-r--r-- 1 apps dba 0 Oct 11 16:04 a
Quote:
readonly user



id
uid=502(readonly) gid=54321(oinstall) groups=54321(oinstall),60000(apps)

umask
0022


readonly user has been put into apps group. but could not write to the folder, which works as expected.

touch a
touch: cannot touch `a': Permission denied

But new files are created with permission 644 due to which they are not been able to be viewd by readonly user, and permissions have to be given recursicvely on folder with chmod -R 755 /path/to/log folder to make them viewable by readonly user.

Kindly suggest how to acheive that the files created by apps user in the logs folder will have permission of 755 or 750 so that readonly user can view them.
 
Old 10-11-2013, 06:37 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Any user will be able to read file if there is 'read' permission is available on a file for related group or others. Meanwhile if you want that user to have full permission, then define a new umask value for 'appsuser'. To do this, just add following line at the end appuser's .bashrc or .profile file:
Code:
umask 000
Then source the file:
Code:
~$ source .bashrc
OR
~$ source .profile

Last edited by shivaa; 10-11-2013 at 06:39 AM.
 
Old 10-11-2013, 07:33 AM   #3
linux_neophyte
LQ Newbie
 
Registered: Jan 2009
Posts: 15

Original Poster
Rep: Reputation: 0
also can you let me know what is the . in front of the file permissions.
Quote:
rw-r--r--.
 
Old 10-11-2013, 12:03 PM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Not much sure, but as far as I am concerned, it's showing 'sticky bit' permission (Read here: http://www.tldp.org/LDP/intro-linux/...ect_03_04.html).
 
Old 10-11-2013, 11:45 PM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by linux_neophyte View Post
also can you let me know what is the . in front of the file permissions.
The . is to show the condition of any ACLs that may be on the file. A "." indicates no ACLs. If an ACL entry did exist, it would show a + sign. You can retrieve the ACLs associated with a file using "getfacl". On files with no ACL it will just list the user/group/other access modes on three lines. (see manpage on getfacl for more info.
 
  


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
File & Folder Permission and Ownership permission error in Cloud storage. rhcekumaran Linux - Newbie 3 06-14-2013 04:41 AM
File and folder permission grob115 Linux - Newbie 16 03-01-2010 10:46 AM
Folder and file permission zion_rulz Linux - Newbie 5 07-09-2009 03:02 PM
Folder/File Permission??? ajeetraina Linux - Newbie 3 05-30-2008 03:25 AM
Permission - Folder vs. File XaViaR Linux - General 23 01-28-2006 07:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:08 PM.

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