Sharing Win7/OpenSUSE11.4

I have installed OpenSUSE 11.4 on my PC. Want to share my files with Win7 system. So far so good, I can access my files on Linux computer from my Windows PC. My problem starts when I want full access to my files, as you see on image it says directory is Public and Writable but still I can’t delete or add files to that directory :frowning:
what did I missed ?

http://i55.tinypic.com/293zsdj.png

Please help me, I love linux, I really love OpenSUSE but those sharing issues makes me crazy …:frowning:

When you are “sharing” files, what does that mean? Is this just one PC and you want to copy files from the Windows Partition OR is this two PC’s running at the same time and you are sharing files over the network? Normally, to share files between two PC’s and one of them is a Windows machine, you must use Samba on the Linux machine. But I am just not sure what you are trying to do.

Thank You,

Yes, as you see on my screenshot I am sharing using Samba.

At the moment I try to make it working between my Windows PC and Linux PC. Both located on my home network. My problem is I can NOT edit or delete files located on my Linux PC from my Windows PC.

Doing the same {edit/delete files located on Windows PC} from my Linux system is working…confusing ?

Thanx for trying to help :wink:

So the problem is often the security settings on the Linux Computer. Here is a link to more information about setting up Samba:

openSUSE SuSE Linux HOWTOs and Tutorials by Swerdna

Now let me say how I do it which avoids such issues. I only share NTFS partitions located on my Linux computer to Windows computers using Samba. Further, in my fstab file, I change the mount command such that the option settings just says defaults and does NOT attempt to create the Linux user security setup. So, when on a Windows Computer, I write files only to a NTFS partition on the Linux computer and using the fstab defaults setting, I do not run into any security issues. Look at the link above for help in your current setup and then consider the method that I use.

Thank You,

This KDE sharing GUI has always been faulty, for 5 years now that I can remember. Strange that the KDE developers don’t fix it over all those years. There’s a complex dance you can do to get it working but it’s just not worth the effort. Easier to edit the stanza that pertains to the share directly (in the file smb.conf, located at /etc/samba/smb.conf).

Or maybe you can fix it yourself. The relevant stanza in smb.conf will look something like this like this:

[DOCUMENTS]
path = /home/john/Documents
guest ok = yes
read only = no

to make it work, make it like this:

[DOCUMENTS]
path = /home/john/Documents
guest ok = yes
read only = no
force user = john

Of course, change “john” to your username.

To edit the file, run this command: kdesu kwrite /etc/samba/smb.conf

If problem persists, please post me the contents of the file smb.conf.

Some users need to share files from the Linux filesystem. This method will not do that. A quick and easy (actually, much easier) method for that, is to include the “force user” line into the [stanza] for sharing the Linux directory/ies. See my post above.

Actually, for those who are interested, here’s more on forcing KDE to work as a file sharing GUI, but IMO it’s so much more straightforward to just edit the Samba config file: Setting up KDE for on-the-fly sharing in Dolphin/Konqueror

Thanks guys, I will try and let you know how it goes asap…

again…BIG thanx for trying to help :wink:

swerdna<====it looks as it’s working now, for the first time I could copy a file from Windows PC to my home directory on Linux computer LOL

and creating directory and…well you know what I am trying to say :slight_smile:

still learning…I did it by editing smb.conf file

swerdna, you are the undisputed king of Samba, without a doubt. I don’t think sharing NTFS partitions as being anything more than about equal to sharing Linux partitions. My thoughts are to prevent any issues that might arise when writing to my Linux computer by providing an identical file system to the Windows source and to not share any Linux partitions at all for anyone to use. As to if this is better in any way to suggestions here made by you, only a crazy person, such as myself, would think it a better solution. It is the reason however why I point out your documents when ever I have the chance and for good reason.

Thank You,

Another problem I have found now is mounting my drives. Currently I have 4 Hdd’s.

  1. Linux dedicated drive
  2. NTFS drive used as storage drive
  3. NTFS drive used as storage drive
  4. NTFS drive used as storage drive

Now the problem is my Linux system says ONLY root can mount and unmount my drives. What and how should I change ?
I tried YAST---->Partitioner and in fstab options checked ‘Mountable by user’ but still can not do anything as user :frowning:

any ideas ? thanks

  1. Linux dedicated drive
  2. NTFS drive used as storage drive
  3. NTFS drive used as storage drive
  4. NTFS drive used as storage drive

Now the problem is my Linux system says ONLY root can mount and unmount my drives. What and how should I change ?
I tried YAST---->Partitioner and in fstab options checked ‘Mountable by user’ but still can not do anything as user :frowning:

any ideas ? thanks
Only root has the authority to mount a drive. If the Hard disk is internal, I just add it to my fstab file. when you run YaST and thus the Partitioner, you must be root to do so. If the hard drive is a USB external one, when you plug it in, the device notifier should give you change to mount the drive automatically. These methods are normal and easy to live with. Just what are your intentions with these other hard drive partitions?

Thank You,

My fstab looks like this:

/dev/sdd1 /home/myUserName/DiskDrive1 ntfs-3g defaults 0 0

but after doing some changes to fstab options using YAST—Partitioner I found a difference and my line in fstab changed to:

/dev/sdd1 /home/myUserName/DiskDrive1 ntfs-3g user 0 0

still can not see any differences when trying to mount/unmount drive

It’s not a big problem and I can live with it as it is…

anyway, thanks :wink:

My fstab looks like this:

/dev/sdd1 /home/myUserName/DiskDrive1 ntfs-3g defaults 0 0

but after doing some changes to fstab options using YAST—Partitioner I found a difference and my line in fstab changed to:

/dev/sdd1 /home/myUserName/DiskDrive1 ntfs-3g user 0 0

still can not see any differences when trying to mount/unmount drive

It’s not a big problem and I can live with it as it is…

anyway, thanks :wink:
There is a big difference between the two entries AND you should use the first one that said:

/dev/sdd1            /home/myUserName/DiskDrive1                ntfs-3g    defaults     0 0

The one above using the defaults settings will allow full read and write to the NTFS partition, while the second will not.

Thank You,