LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-07-2005, 09:20 AM   #1
archangel77
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
Accessing a directory with different user permissions


I have the following situation: I have a directory that is owned by user x. I am logged in as user y and I want to access the directory as user x. The catch: I would like to start any program as user y and read and write to the directory as user x.

Can you somehow "mount" directories as a volume?

Using FTP to do this is not an option.
 
Old 08-07-2005, 10:15 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Welcome to LQ.

Just run the program as user x using "su".

su -c /path/to/program USER
 
  


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
Apache user directory permissions AMMullan Linux - Software 11 12-23-2004 02:56 AM
permissions of my /home/"user" directory error darkleaf Linux - Software 10 09-26-2004 03:08 AM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 04:04 AM
Restricting user directory permissions britishnemesis Linux - Security 1 11-17-2003 07:10 AM
permissions question... can I make a directory writable from my user account hindenbergbaby Linux - Newbie 9 10-20-2003 05:42 PM


All times are GMT -5. The time now is 09:53 AM.

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