LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-18-2005, 11:51 PM   #1
soup21
LQ Newbie
 
Registered: Dec 2004
Posts: 27

Rep: Reputation: 15
Question changing file attribute on windows shares from linux


Hello all

When in linux we mount a windows share from a Win-2k server how we can change the attributes of files and folders of that share ? (The attributes such as read/write/change/delete/change ownership ... )

any suggestion ?
 
Old 11-19-2005, 12:16 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
To my knowledge, and after having tried, you can't change ownership of files in a FAT
partition. They will be owned by root in the root group. However, you should be able to
change permissions. Issue as root "chmod <perms> <file>" to do this. You need to have
that partition mounting in /etc/fstab with the proper permissions, also. Mine are:
Code:
/dev/hda2        /Storage         vfat        users,umask=1000,rw,auto   1   0
Read "man mount" and "man fstab" for more information.
 
Old 11-23-2005, 11:58 PM   #3
soup21
LQ Newbie
 
Registered: Dec 2004
Posts: 27

Original Poster
Rep: Reputation: 15
Lightbulb Windows share not Windows partition !!

Hello Chinaman

Thanks,
But I told Windows shares not Windows objects, Windows shares such as you make a folder sharable in a Windows machine, and from another machine in a network ( Windows or Linux) you can access to that folder.( In linux by command "mount -t smbfs //Remote_machine_name//That_folder /mnt/s1" ).

But I need the changing of all file or folder attributes of such that shares from linux machine. That attributes are 13 for files or folders on a W2K machines.

Waiting for any other idea
 
  


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
file attribute question swmok Debian 2 05-20-2004 01:16 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 06:28 PM
Samba config to allow Windows read-only file attribute changes percheron Linux - Networking 8 09-13-2003 12:56 AM
File shares from windows on Linux. SSBN Linux - Networking 2 05-07-2003 01:38 AM
VFAT file attribute SloppyO Linux - General 2 09-11-2001 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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