LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-19-2005, 01:26 AM   #1
Ramu
LQ Newbie
 
Registered: Jan 2005
Location: Bangalore, India
Distribution: RedHat,SuSE,UnitedLinux
Posts: 2

Rep: Reputation: 0
Wink Can't chmod/chown a dir after smbmout !?


Hi Friends,

As a root I can chown a dir say /rock to ramu:ramu.
I smbmounted a windows dir onto this.
Now /rock permissions are set to root:root.
I issues chown command to set it to another user say, ramu.
It appears that the command worked, [no warnings given]
But " ls -l " shows root:root for /rock.

Now user ramu is unable to creat any file under the smbmounted /rock.

Any workaround in your minds please...
 
Old 01-19-2005, 01:52 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I don't believe smbmounted fs's support changing owning users or groups. The problem is some smbmounted shares could be filesystems that don't have those permissions. I believe the owning user/group is automatically set to the user/group that mounts the fs. This is the same behavior you'd see if you mounted a local fat32 disk.
 
Old 01-19-2005, 09:24 AM   #3
Ramu
LQ Newbie
 
Registered: Jan 2005
Location: Bangalore, India
Distribution: RedHat,SuSE,UnitedLinux
Posts: 2

Original Poster
Rep: Reputation: 0
With a little bit of tinkering I found the solution.
It works with the following command...

mount -t smbfs -o username=ramu -o uid=ramu -o gid=ramu //winsys/sharedfolder /linuxsys/mountpoint

Now you have set ramu as the user and his group as owners of the mounted smb filesystem.

Now you can upload and download files from /linuxsys/mountpoint.

Thanks buddy for responding to my post.
 
  


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
chmod/chown and folders :) chibi Linux - Newbie 2 04-28-2005 04:56 PM
chmod ,chown ,chgrp------------ pal Linux - Newbie 1 02-27-2005 02:49 PM
Arg!! chown /chmod Kanon Linux - Newbie 10 01-16-2005 03:05 PM
Log Chmod and Chown FernandoLozano Linux - Security 5 01-10-2005 09:01 AM
reverse chmod/chown changes demmylls Linux - General 1 02-09-2004 12:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:07 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
Open Source Consulting | Domain Registration