LinuxQuestions.org
Review your favorite Linux distribution.
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 07-29-2014, 05:22 AM   #1
casperdaghost
Member
 
Registered: Aug 2009
Posts: 349

Rep: Reputation: 16
chaging file permissions for read write execute access on Directory


I have a user that wants me to run files in her direcotry
bigscript1.pl
bigscript2.pl
bigscript3.pl
bigscript4.pl
bigscript5.pl
bigscript6.pl


I have access to her home directory.
Code:
adm@bighost:/home/user $ ls -ltr /home/someUser/ | grep BIGscripts

drwxr-x--- 2 someUser u16042    4096 Jul 24 17:43 BIGscripts/
But I do not have access to the bigscripts directory where the wcripts are:
Code:
adm@bighost:/home/user $ ls -ltr /home/someUser/BIGscripts

ls: /home/someUser/BIGscripts: Permission denied

I have access to her home directory. However I do not have access to the BIGscripts directory.

I am going to ask her to change the permissions on her directory so i can access these files.

If she runs a command and locks herself out of this directory I am really going to get yelled it.

What command should I send her to allow me to get read write and execute to the files bigscript1.pl, bigscript2.pl, bigscript3.pl, bigscript4.pl, bigscript5.pl, bigscript6.pl?
 
Old 07-29-2014, 06:30 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Simplest would be to add yourself to that group u16042, as far as running a script goes (assuming same ownership/perms on the scripts).
However, if the scripts also write to that dir, you'll need to add 'w' perm
Code:
chmod g+w /home/someUser/BIGscripts
 
Old 07-29-2014, 06:34 AM   #3
casperdaghost
Member
 
Registered: Aug 2009
Posts: 349

Original Poster
Rep: Reputation: 16
will giving me access to the directory give me access to the scripts.

if not do i just have her run:
Code:
 chmod g+w /home/someUsers/BIGscripts/bigscript2.pl
what does the chmod g do?
 
Old 07-29-2014, 06:57 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Really ???
http://linux.die.net/man/1/chmod
 
Old 07-30-2014, 09:34 PM   #5
casperdaghost
Member
 
Registered: Aug 2009
Posts: 349

Original Poster
Rep: Reputation: 16
foo

i do not have access to her directory, but can run the full path to the scripts.
weird
 
  


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
how i can change file permissions to read,write and modify but not to delete in linux boby.kumar Linux - Newbie 9 03-20-2013 10:29 AM
File Permissions - Execute Not Read baddah Linux - Newbie 3 05-23-2007 04:08 PM
Permissions: giving specific groups write access to a directory kinetik Linux - General 3 07-06-2006 09:30 AM
How do I change read/write permissions for a whole directory? Stevetgn Linux - Newbie 8 12-31-2003 08:41 AM
How to set permissions to read, execute, write for users only chupacabra Linux - General 3 12-18-2002 04:54 PM


All times are GMT -5. The time now is 01:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration