LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-26-2007, 09:33 PM   #1
mattd7591
Member
 
Registered: Jun 2006
Distribution: Debian Etch
Posts: 92

Rep: Reputation: 15
[NOT solved]cifs not using uid and gid


After using smbfs, I switched to cifs after smb kept timing out.
However it is not using the uid option as samba did
With the uid=matt,gid=matt options, it is still root.
I also tried with the noperm option, but that didn't help.
The server is a maxtor share drive, so I really don't have any control over it. here is fstab
Code:
#Samba Shares
#//ALLOFUS/MUSIC		/mnt/music	smbfs	user,ro,auto,username=matt,password=linux,uid=matt,gid=matt	0	0
#//ALLOFUS/MSD		/mnt/msd	smbfs	user,rw,auto,username=matt,password=linux,uid=matt,gid=matt	0	0
#//DEBRA-PC/Public	/mnt/mom	smbfs	user,ro,auto,username=matt,password=linux,uid=matt,gid=matt	0	0
#//ALLOFUS/backupmsd	/mnt/backupmsd	smbfs	user,rw,auto,username=matt,password=linux,uid=matt,gid=matt	0	0

#cifs Shares
ALLOFUS:MUSIC		/mnt/music	cifs	user,ro,auto,user=matt,pass=linux,uid=matt,gid=matt	0	0
ALLOFUS:MSD		/mnt/msd	cifs	user,rw,auto,user=matt,pass=linux,uid=matt,gid=matt	0	0
DEBRA-PC:Public	/mnt/mom	cifs	user,ro,auto,user=matt,pass=linux,uid=matt,gid=matt	0	0
ALLOFUS:backupmsd	/mnt/backupmsd	cifs	user,rw,auto,user=matt,pass=linux,uid=matt,gid=matt	0	0
The samba section is commented out, as it is there for reference. Doe anyone know hot to correct this?

Last edited by mattd7591; 05-27-2007 at 11:07 AM.
 
Old 05-26-2007, 09:43 PM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Hmmm, perhaps try UID and GID #'s instead?
 
Old 05-26-2007, 09:48 PM   #3
mattd7591
Member
 
Registered: Jun 2006
Distribution: Debian Etch
Posts: 92

Original Poster
Rep: Reputation: 15
I tried it. Didn't work. I keep reading stuff if the server supports some Unix extension, it uses it even if uid is specified in options. I don't really understand exactly what this is and can't figure out how to override it.
Thanks for the quick response.
 
Old 05-27-2007, 10:28 AM   #4
mattd7591
Member
 
Registered: Jun 2006
Distribution: Debian Etch
Posts: 92

Original Poster
Rep: Reputation: 15
I also tried
Code:
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
but it doesn't work. I believe the problems is Unix Extensions. However, being a Maxtor Network Drive, I can' turn it off on the server.
So I need to figure out how to overide Unix Extensions on the clien, debian Lenny.
 
Old 05-27-2007, 10:34 AM   #5
mattd7591
Member
 
Registered: Jun 2006
Distribution: Debian Etch
Posts: 92

Original Poster
Rep: Reputation: 15
Code:
Figured it out. Leaving off user made it work (There aren't usernames, but it stilla sks for it; random characters work.
Disregard that, it isn't working now
Help

Last edited by mattd7591; 05-27-2007 at 11:07 AM.
 
Old 05-29-2007, 04:49 AM   #6
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Rep: Reputation: 32
I think you ran into a problem with the kernel which will now be fixed with kernel 2.6.22

Quote:
Steve French (10):
[CIFS] Remove unnecessary parm to cifs_reopen_file
[CIFS] Add write perm for usr to file on windows should remove r/o dos attr
[CIFS] New CIFS POSIX mkdir performance improvement
[CIFS] New CIFS POSIX mkdir performance improvement (part 2)
[CIFS] Add IPv6 support
[CIFS] Update cifs version to 1.49
[CIFS] prefixpath mounts to servers supporting posix paths used wrong slash
[CIFS] UID/GID override on CIFS mounts to Samba
[CIFS] Fix oops in reset_cifs_unix_caps on reconnect
[CIFS] Fix typo in cifs readme from previous commit
 
Old 05-29-2007, 02:15 PM   #7
mattd7591
Member
 
Registered: Jun 2006
Distribution: Debian Etch
Posts: 92

Original Poster
Rep: Reputation: 15
Ill look into it when it is out.
At least this gives me an incentive to custom build my kernel (Im using Debian Testing)
 
Old 07-19-2007, 10:34 AM   #8
mekump
LQ Newbie
 
Registered: Feb 2006
Distribution: CentOS-4
Posts: 19

Rep: Reputation: 0
I have a similar problem in connecting to a Linkstation NAS. I had to change my uid and gid to 100 to match the uid and gid on the NAS. It then would mount with me as the owner of the dir but I am currently unable to chmod the dir or files in the dir.
 
Old 07-19-2007, 10:52 AM   #9
mattd7591
Member
 
Registered: Jun 2006
Distribution: Debian Etch
Posts: 92

Original Poster
Rep: Reputation: 15
It doesn't work for me.
 
Old 07-19-2007, 11:23 AM   #10
mekump
LQ Newbie
 
Registered: Feb 2006
Distribution: CentOS-4
Posts: 19

Rep: Reputation: 0
I tried this with CentOS5, I think kernel 2.6-18. As stated above, kernel 2.6.22 will fix more of the cifs problems.
 
Old 07-19-2007, 11:30 AM   #11
mattd7591
Member
 
Registered: Jun 2006
Distribution: Debian Etch
Posts: 92

Original Poster
Rep: Reputation: 15
Ok, Ill wait for it to come into Debian Testing, which will be a while as I don't believe it is even in unstable yet. For the meantime I just use smbfs mounts to write (I don't use samba full time as it times out constantly.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is uid and gid rmanocha Linux - Software 9 08-18-2008 11:03 PM
Shell Script :- to get UID and GID furquan Programming 30 02-21-2006 07:44 AM
What is my uid/gid? Jeebizz Slackware 2 11-22-2005 11:39 AM
How can I change a user's uid and gid? homesp Debian 2 05-31-2005 02:39 PM
changing uid, gid zeke1955 Linux - General 4 01-09-2004 11:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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