Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
A share can be configured for read and write access per account. It would seem that the credentials you provide in .smbcred are good for read access but not for writing. Check the configuration of the D share on 192.168.0.11.
By the way, you are not supposed to ask the same question more than once. People might answer one of your questions while the other one is already answered or solved (as is your case).
A post can only be deleted by a moderator. Use the REPORT button for that.
Ok 1. I can not report the first question that i placed in a wrong spot. Stated I did not have permission to do so!
2. You stated that CIFS permissions sre based upon the windows user, however in my research I found several pages showing that that might not be the case. Any ways my remoteUser windows user has full control of D drive and I double checked all the folders on the windows system to verify. I remote in from another windows system using the remoteUser credentials and I can RWX files.
On the Ubuntu box however I can not I can as root using sudo commands in terminal but not as user, ep or 1000.
On the Ubuntu box however I can not I can as root using sudo commands in terminal but not as user, ep or 1000.
Hmmm, that would indicate that the UNIX permissions are not set correctly on the share. My knowledge of this is hazy, but I think you can separate Windows and UNIX permissions and set them individually.
So, can you just do a long directory listing (ls -ld) of a directory where user or ep have read but no write permissions?
I expect to see permissions and ownership similar to this:
So, can you just do a long directory listing (ls -ld) of a directory where user or ep have read but no write permissions?
I expect to see permissions and ownership similar to this:
Code:
rwxr-xr-x root root
To fix this, try sudo chmod 777.
FYI I changed from ubuntu to porteus and box is a ton more stable but I still have the issue.
You asked for long directory list. before mount command. chmod worked and i can change it around how ever I want...
drwxrwxr-x 2 root root 4096 dec 21 17:01 media-pc-d
After mount command. Chmod command does not change it errors out " changing permissions of /mnt/media-pc-d : Permission denied
Yes as root
drwxr-xr-x 2 root root 4096 dec 21 17:01 media-pc-d
ive tried adding the rw option and removing the sec=ntlm option. I still only have r-x as user
I have checked and rechecked permissions in the windows secrity and the use in my credentials file has full control. Is there a log file that I can tail and see if it tells me anything regarding the mount command or chmod?
The logs are on the server. If it's a Samba server, they are usually under /var/log/samba. You can also select the log level in the smb.conf file. If it's a Windows server, I am sure it's possible but wouldn't know how.
I apologize for my inepttitude, LOL I dislike windows non domain issues. I followed the following guide. http://www.howtogeek.com/176471/how-...ows-and-linux/
I found that my D drive was restricted read only on advanced sharing permissions. But in security full access, And you know windows if they don't match then most restrictive is used.
So I set that up and re mounted the share and ARGHH still restricted to r-x
I will continue to research, ill start with brand new share and figure this out when I figure it out Ill post, Im on the right track it has to be on the windows side. WINDOWS REGRESSION,LMAO.
also may have to do with guest login instead of user but my ls - al of /mnt shows still drwxr-xr-x and as root I can write in the folder I would think that even root would not be able to write if the permissions did not match???!!!
There are a number of places where the rights need to be correct.
You've already verified that the Windows user has the proper permissions.
You've also verified that the root user can modify the files. That means that samba is working correctly.
The only thing you need to do is give a specific unix user permission to right to this mount.
This is done via the uid= and gid= options in the fstab. See man mount.cfs
Thank you for the information I will try those options again as soon as I get arch-linux up and running, LMAO after installation no networking, still learning.
Ouch, learned alot, Arch - linux up and running, stable with, Chrome and pepper flash, Blah Blah.
Also new netgear ac1900 router but still unstable internet network keeps stalling.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.