SCIENTIFIC-LINUX-USERS Archives

September 2013

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Earl Ramirez <[log in to unmask]>
Reply To:
Earl Ramirez <[log in to unmask]>
Date:
Thu, 26 Sep 2013 15:24:57 -0400
Content-Type:
multipart/signed
Parts/Attachments:
text/plain (1796 bytes) , signature.asc (323 bytes)
On Thu, 2013-09-26 at 12:15 -0700, Mahmood Naderan wrote:
> $ chmod -R 2770 /home/mahmood/test
> 
> Excuse me how can I revert back this command?

$ chmod -R 0770

Or depending on what permission you had prior to the change.
> 
>  
> Regards,
> Mahmood
> 
> 
> 
> 
> ______________________________________________________________________
> From: Earl Ramirez <[log in to unmask]>
> To: Mahmood Naderan <[log in to unmask]> 
> Cc: "[log in to unmask]"
> <[log in to unmask]> 
> Sent: Thursday, September 26, 2013 10:24 PM
> Subject: Re: How a user can execute a file from anothe user
> 
> 
> On Thu, 2013-09-26 at 11:06 -0700, Mahmood Naderan wrote:
> > Hi
> > I want to grant users to access (read/execute) some files and
> folders
> > inside my home directory. Using chmod seems to be insufficient. For
> > example I have made an executable file public for all
> > 
> > 
> > [mahmood@tiger ~]$ chmod 777 test
> > [mahmood@tiger ~]$ ls -l test
> > -rwxrwxrwx. 1 mahmood mahmood 8026 Sep  2 12:18 test
> > 
> Are all this taking place on the same system?
> 
> You can create a group and put all the users in that group, this way
> they will only have access to that particular directory. Then do the
> following:
> 
> $ groupadd pubgrp
> $ chown -R mahmood.pubgrp /home/mahmood/test
> $ chmod -R 2770 /home/mahmood/test
> 
> > 
> > 
> > 
> > 
> > However when another user tries to run, it receives permission error
> > 
> > 
> > [anotherone@tiger ~]$ /home/mahmood/test
> > -bash: /home/mahmood/test: Permission denied
> > 
> > 
> > 
> > What is the solution.
> > 
> >  
> > Regards,
> > Mahmood
> > 
> 
> -- 
> 
> 
> Kind Regards
> Earl Ramirez
> GPG Key: http://trinipino.com/PublicKey.asc
> 
> 

-- 


Kind Regards
Earl Ramirez
GPG Key: http://trinipino.com/PublicKey.asc


ATOM RSS1 RSS2