UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have two partitions, both formatted as ext4. One with Ubuntu 10.10 64-bits and the other just for data (formatted as ext4 zero). I wanted to share a folder from this second partition. I followed the instructions on http://tech.mobiletod.com/how-enable...cation-ubuntu/ but there was not any "Windows networks (SMB)" option, only "Unix networks (NFS)". Why is this?
It looks to me like shares-admin is hosed in general. I do not have a 10.10 64 bit machine at the moment (downloading the image now) but I tried a 32 bit version. It prompted me to install both. I unselected NTFS and it came back and both were checked - told me they both needed to be installed. I told it to install and it (seems like) it did - although it did not ask me for to authenticate for escalated privileges. This is a security issue and I will file a bug if I can confirm. That said... with both NTFS and SMB supposedly installed shares-admin told me again that I needed to install them.
I ran shares-admin on my 10.04 box which has samba installed and running and several subdirectory share points available to my windows virtual machines. The program told me I needed to install samba. Bottom line, I think shares-admin is truly hosed.
This is very bizarre! I have created a directory on my Linux machine within a Samba share and tried various restrictive permissions both from the Windows side (making it Read Only) and from the Linux side (changing the owner and group to root and removing permissions from everyone else). I no case does Windows Explorer gray out the cut option. Even when I cannot cut the directory or folder. I have even tried a CD ROM disk. Cut is enabled although I obviously cannot cut the files from a CD ROM.
Can you copy the folder to location 2?
Can you delete the folder from location 1?
Another thought... do you have an username/account on your Linux machine corresponding to your Windows username? It should not matter the way your Samba share is defined. At least in theory.
This is very bizarre! I have created a directory on my Linux machine within a Samba share and tried various restrictive permissions both from the Windows side (making it Read Only) and from the Linux side (changing the owner and group to root and removing permissions from everyone else). I no case does Windows Explorer gray out the cut option. Even when I cannot cut the directory or folder. I have even tried a CD ROM disk. Cut is enabled although I obviously cannot cut the files from a CD ROM.
Can you copy the folder to location 2?
Can you delete the folder from location 1?
If not, what error messages to you see?
Ken
You didn't understand: the cut option is greyed out on Ubuntu, not on Windows XP.
Another thought... do you have an username/account on your Linux machine corresponding to your Windows username? It should not matter the way your Samba share is defined. At least in theory.
Sorry - I had used google translate to read your post on launchpad. I thought you were using Windows to manipulate the folders. Have a look at the Linux permissions of the folder you are trying to cut.
Quote:
ls -l "\mnt\cdrive\shared sf\Joćo\Downloads"
The quotes are necessary because of the space in shared sf. Your account on the Ubuntu machine or your Group on the Ubuntu machine must have write permission to the folder in order to cut or delete it. If you need assistance in interpreting the results of ls -l do a search. There are many excellent tutorials on the net. You can use chmod to correct the permissions on the folder to allow you to cut or delete it.
As to my user account question... I have always disabled guest access to the Linux machine via Samba. I access it with my Windows account and password which have a corresponding and matching account and password on the Linux box. I guess I have spent too many years doing security admin on every platform from the PC to the MVS mainframe to intentionally allow sightseers and onlookers a free ride
Your account on the Ubuntu machine or your Group on the Ubuntu machine must have write permission to the folder in order to cut or delete it. If you need assistance in interpreting the results of ls -l do a search. There are many excellent tutorials on the net. You can use chmod to correct the permissions on the folder to allow you to cut or delete it.
There is a problem with your suggestion: if I use chmod to correct the permissions on the folder, it means I will have to use chmod every time someone at my home copies/moves a folder from a PC/laptop with Windows to "shared sf" (the shared folder in Ubuntu) and, as you may understand, this is not practical at all. Is there a way for me not to have to use chmod all the time?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.