LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-17-2010, 06:20 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
File permissions in every element of the path or just the last one?


Kernel 2.6.21.5, slackware 12.0

Hi:
For a given app run by me as user john to be able to create a file in /foo1/foo2/, what do I need?

(a) john to have write permissions in /foo1/?
(b) john to have write permissions in /foo1/foo2/?
(c) john to have write permissions in both /foo1/ and /foo1/foo2/? Any hint will be welcome.

Note: No. It's not homework. KTorrent complains when trying to create the files being downloaded, saying 'permission denied'. But I think he is being run by another user. Well... I can explain in a different thread.
 
Old 12-17-2010, 06:26 PM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
read+execute (well, technically just execute, but that's uncommon) for directory foo1/ and read+write+execute on foo2/
 
Old 12-17-2010, 07:03 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thank you for your instructive reply, GazL. I have just discovered what happens. All dirs in the path are owned by root. It's a vfat (FAT32) file system. I put dmask=000 in fstab but must surely do something else so the o.s. thinks the regular user is the owner. Or enter the GUI (it's there I was working in) as root.
 
Old 12-18-2010, 04:16 AM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I added uid=xxx,gid=yyy in fstab and all went well. The O.S. now thinks the fat partition has owner/group information.
 
  


Reply



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
Samba File permissions for multiple groups in the same general path hmendoza Linux - General 1 11-06-2009 03:43 AM
xset bad font path element, ugly fonts verbose Debian 1 07-19-2006 05:11 AM
Dropline 2.8.2 causes font path element error in X Windows jtp51 Slackware 1 12-30-2004 02:05 PM
Could not init font path element?? nu_us3r Linux - Newbie 4 08-25-2004 07:01 PM
could not init font path element - Xvfb harry349 Linux - General 16 08-15-2004 08:52 AM

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

All times are GMT -5. The time now is 10:44 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