Posts: 1
Threads: 0
Joined: Sep 2006
Reputation:
0
You people need to stop posting answers to questions unless you know your advice will work. I've lost about 30 hours in the last 4 days because of this.
I too have the same problem.
I installed Ubuntu 6.06 dapper drake as dual boot. Followed instructions and installed it correctly. Everything is great... except whenever I click on a drive in "Computer" I get a message that says "Only root can mount /dev/sdc1". And yes, I have tried everything I can think of. My fstab looks fine. I've tried sudo and sudo su to root.
Helpful suggestions please. Obivously lots of people have had this issue if I received the error on a clean install.
Posts: 955
Threads: 36
Joined: Sep 2008
Reputation:
0
Just a quick footnote: "smbfs" should now read "cifs" for newer versions of SAMBA. I can't tell what version it changed; I know SMBFS still works on my FC4 home box but not on my Fed7 server at work (had to use CIFS).
Posts: 1
Threads: 0
Joined: Jul 2009
Reputation:
0
I have tried many different things in the terminal to get read AND write access to my windows xp shared folder in a mounted folder. I can read and write if i go into smb://server/SharedDocs/ but in the folder i mounted it to, all the files are read only. I'm trying to get read and write access in the folder i mounted it to, is this possible?
The windows XP computer is on the same network as my kubuntu 9.04 which is the computer I cam trying to do this on.
Examples of what I've tried:
smbmount //192.168.0.101/SharedDocs /home/kyle/Server -o rw,umask=000
smbmount //192.168.0.101/SharedDocs /home/kyle/Server -o rw,uid=kyle
sudo smbmount //192.168.0.101/SharedDocs /home/kyle/Server -o -username=kyle,password=,dir_mode=0777,file_mode=0777
(in the last one on here I wasn't completely sure about what to do for the username and password)
Thanks for any help.
Posts: 955
Threads: 36
Joined: Sep 2008
Reputation:
0
Firstly, I'd not recommend using 777 on any directory/file. For testing, pop it on, then examine the ownership of files etc - but it should then be changed back to something more secure.
Secondly, you need to match the XP credentials versus the Linux ones: Linux will connect to that share and emulate the user, but then you'll need to map local (Linux) users to that remote user so from XP's point of view, it's the same user each time - I think the SUID and SGID bits will do this.
Also, check the file ownership from the XP side - are the files owned by "Kyle" or by "guest"? I know under Windows that unmatched credentials will drop the incoming connection down to "guest" access which is usually disabled by default in XP now, but some people enable it to diagnose sharing issues then forget that every unmatched incoming username maps to the guest user.
Can you also look at the security logs under XP and see what they say?
Oh - one final point... check the ownership/permissions of the mount point AFTER it's mounted. I made that mistake once.