Accessing Windows Shares

If you want to access your Windows shared folders through Linux and also to be able to view your videos and listen to your mp3 through your local network install smb4k like this:

$ sudo yum install smb4k
Now run smb4k. Go to Settings -> Configure Smb4K -> Samba and put your workgroup’s name. Press Ok and exit. Now click on the Refresh button and let smb4k to scan your network. If you have iptables firewall running you should set Samba as a trusted service. To do so run Firewall from the start menu or open a terminal and type:

system-config-firewall
Here in ‘Trusted Services’ find ‘Samba’, tick it and press ‘Apply’.

When the shares appear at the left window double click on the one you want. Currently smb4k has a bug with the sudo command. So if you get a message like:

mount error 1 = Operation not permitted Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
open a terminal and type:

$ sudo chmod u+s /sbin/mount.cifs
$ sudo chmod u+s /sbin/umount.cifs
Each time you update smb4k or a samba component you have to run again this command.

Advertisements

About Tanveer
RIA (Rich Internet Application) Developer with a wide variety of business applications. Particularly interested in client/server and relational database design. Always interested in migration projects, as well as close interaction with the DB manufacturers.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: