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 02-04-2009, 11:48 AM   #1
AmdMhz
Member
 
Registered: Jan 2004
Location: Indiana
Distribution: Debian, OpenSUSE
Posts: 142

Rep: Reputation: 15
Permissions change when I mount a directory


Hi. I have a little problem with mount permissions that I canít seem to figure out. The unomunted directory permissions change as soon as I mount the directory. I need them to stay the same permissions mounted as they are unmounted

When unmounted the permissions are:

drwxr-xr-x 2 www-data www-data 1024 2009-02-04 11:19 adv

When I mount the folder it changes to:

drwxrwxrwx 1 root root 0 2009-02-04 11:25 adv

When mount I want it to say this:

drwxr-xr-x 1 www-data www-data 1024 2009-02-04 11:19 adv

I donít understand what I am doing wrong and I have been googling about it. I am mounting the directory like this:

mount -t cifs -o username=adv,password=adv //imaging/ImagingUploads /mnt/upload

Below is how I have it setup in the fstab file:

//imaging/ImagingUploads /mnt/upload smbfs uid=www-data,gid=www-data,username=adv,password=adv 0 0

Can anyone give me any pointers of what I am doing wrong? Thanks for your time.
 
Old 02-04-2009, 03:28 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Your problem is the filesystem, cifs/samba ... you can't override those
values.
 
Old 02-04-2009, 03:36 PM   #3
AmdMhz
Member
 
Registered: Jan 2004
Location: Indiana
Distribution: Debian, OpenSUSE
Posts: 142

Original Poster
Rep: Reputation: 15
Thanks of the reply. So should I be mounting directories a different way that what I have been doing? Or won't that matter and still have the same problem? Thanks again
 
  


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 do I change directory permissions ? cwolf78 Linux - Software 3 05-05-2005 12:15 PM
FTP Change Directory Permissions rubbercash Linux - Networking 5 07-29-2004 04:54 PM
can't change directory permissions walterbyrd Debian 7 07-24-2004 01:20 PM
Mount directory permissions Joe47 Fedora 2 07-13-2004 12:13 AM
How do I Change directory permissions? Stevetgn Linux - Newbie 8 06-09-2004 12:09 AM


All times are GMT -5. The time now is 05:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration