Fstab mount as user

Welcome to the most active Linux Forum on the web. Welcome to LinuxQuestions. 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. Are you new to LinuxQuestions. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.

For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free.

I can mount on command line as user abc using sudo. This article should tell you everything you need to know: " Linux - Mount device with specific user rights ".

Find More Posts by jessetaylor Thread Tools. BB code is On. Smilies are On. All times are GMT The time now is AM. Twitter: linuxquestions.

Open Source Consulting Domain Registration. Search Blogs. Mark Forums Read. User Name. Remember Me? Linux - Server This forum is for the discussion of Linux Software used in a server related context.Ubuntu Forums Code of Conduct.

Results 1 to 5 of 5. Thread: Configure fstab to change ownership to specific user. November 14th, 1. Join Date Dec Beans Configure fstab to change ownership to specific user Haylo all, I want to mount my NTFS partition with 'dbs' user as owner to mount point and all files inside the mount.

I tried changing permissions first on the mount point directories, for e. Please help me on this and keep it simple. Adv Reply. November 14th, 2. Join Date Mar Beans November 14th, 3. Join Date Dec Beans 6, Re: Configure fstab to change ownership to specific user.

November 15th, 4. Re: Configure fstab to change ownership to specific user Thank you Cyclane, your post did help me understanding fstab. November 15th, 5.

Re: Configure fstab to change ownership to specific user Thanks a ton Morbius1, it's working exactly how I wanted. Again thanks a ton for clear reply. Tags for this Thread fstab mountownership of data. Bookmarks Bookmarks Digg del.

The time now is PM. For details and our forum data attribution, retention and privacy policy, see here.GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. I tried removing noauto to make it mount at start. This doesn't work. How can I edit fstab in such a way that it mounts the bucket with a specified user id? I would need more detail than "this doesn't work" to know for sure though. Still: let me urge you to not do this.

fstab mount as user

Requests to GCS are not nearly as reliable as local disk, and you're likely to find yourself with a system that hangs on boot if anything goes wrong. I see, thanks. But I'm not sure why you need them. Can you do this. Anyways, that works for the meantime.

Sorry to re-open the discussion about this. But the above comments doesn't answer the question, i. We use optional third-party analytics cookies to understand how you use GitHub. Learn more. You can always update your selection by clicking Cookie Preferences at the bottom of the page.

For more information, see our Privacy Statement. We use essential cookies to perform essential website functions, e.

We use analytics cookies to understand how you use our websites so we can make them better, e. Skip to content. Dismiss Join GitHub today GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. Sign up. New issue.

fstab mount as user

Jump to bottom. Copy link Quote reply. Sounds good. Hi, Here I have the same issue, someone can help us? Regards, Eduard. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. Linked pull requests.

You signed in with another tab or window. Reload to refresh your session.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up. You don't specify in your question whether you are trying to use NFSv3 or NFSv4, but neither supports a password parameter.

The user parameter isn't even recognized by NFS or mount. The user parameter or usersif un-mounting is also desired can be specified by itself with no additional arguments i. All working solutions that require supplying the user option to mount currently rely on also supplying the noauto option, and then running the mount command manually after loginas the user that you wish to mount the NFS export with.

NFS does not support sending plaintext passwords over the network, so you should never find yourself specifying a password as a mount option. Sign up to join this community. The best answers are voted up and rise to the top. Asked 4 years, 8 months ago. Active 2 years, 7 months ago. Viewed 89k times. What error do you get when you manually try to mount it? Active Oldest Votes. I found the error, i need insert username instead of user Heath Loder Heath Loder 19 3 3 bronze badges.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

Email Required, but never shown. The Overflow Blog. Podcast Ben answers his first question on Stack Overflow. The Overflow Bugs vs. Featured on Meta. Responding to the Lavender Letter and commitments moving forward. Related 0. Hot Network Questions. Question feed. Server Fault works best with JavaScript enabled.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. It only takes a minute to sign up. I currently have an extra HDD which I am using as my workspace.

Can I simply just use chown or chmod to control the access? If the filesystem type is one that doesn't have permissions, such as FAT, you can add umaskgid and uid to the fstab options. For example:. Group and Others will have read and execute.

fstab mount as user

Don't give them write access here, since if they accidentally rename the workspace mount point, it could make your system fail to boot. After the filesystem is mounted, you can make further ownership and mode changes to objects within the filesystem to accommodate finer-grain access among the group members.

For example, assuming the filesystem on the disk supports ACL's, and using the hypothetical user, myusername, and the hypothetical group for accessing the disk, diskusers, something like the following could be done. The -d is a switch to specify a default mask - new files and directories. The -m is the mask to apply to the directory. At that point, only root and members of diskusers can access the files. I like Mark Plotnick's idea, too, about applying permissions to a subdirectory. This technique could be used that way, too.

Sign up to join this community. The best answers are voted up and rise to the top. Asked 5 years, 4 months ago. Active 5 years, 4 months ago. Viewed 48k times.

fstab mount as user

Gilles 'SO- stop being evil' k gold badges silver badges bronze badges. Active Oldest Votes. I would gate access to the filesystem through a directory that contains the mount point. Mark Plotnick Mark Plotnick Create a group to which a user may belong for the purpose. Christopher Christopher Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Ben answers his first question on Stack Overflow.

The Overflow Bugs vs. Featured on Meta. Responding to the Lavender Letter and commitments moving forward. Related 3.

Subscribe to RSS

Hot Network Questions.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up. I want to create a Public folder that has full RW access. The problem with my configuration is that Windows users have no issues as guests they can RW and Deletemy Ubuntu client can't do the same. We can only write and read, but not create or delete.

Extra info. I just noticed that if I copy a file to the share after mounting, my Ubuntu client immediately make "nobody" be the owner, and the group "no group" has read and write, with everyone else as read-only.

I arrived at this via sheer brute force:. CIFS does not generally have any concept of user and group, so mounting a cifs share will default to showing user and group as 'nobody':. Since you are not 'nobody' Linux will not let you write to anything that doesn't have permission unless you use sudo.

This not not actually changing anything on the server, since the server is not enforcing anything. It is telling Linux to pretend that you are the owner and give you unrestricted access. I had this problem and it was because the user of the share did not own it.

Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top.

Asked 7 years, 3 months ago. Active 3 years, 4 months ago. Viewed k times. Here is the my smb. What am I doing wrong? Kendor Kendor 4, 7 7 gold badges 41 41 silver badges 55 55 bronze badges.In Linuxit is part of the util-linux package.

The fstab file typically lists all available disk partitions and other types of file systems and data sources that may not necessarily be disk-based, and indicates how they are to be initialized or otherwise integrated into the larger file system structure. The fstab file is read by the mount command, which happens automatically at boot time to determine the overall file system structure, and thereafter when a user executes the mount command to modify that structure.

It is the duty of the system administrator to properly create and maintain the fstab file. While fstab is used for basic system configuration, for other uses, it has been superseded by automatic mounting mechanisms.

The fstab file is read by programs that work with disk partitions and other file systems and is not automatically maintained. Instead it is written by the system administrator or sometimes by an operating system installation program. However, some administration tools can automatically build and edit fstab, or act as graphical editors for it. Modern Linux systems use udev as an automounter to handle the hot swapping of devices such as MP3 players or digital cameras instead of relying on fstab.

Programs such as pmount allow ordinary users to mount and unmount filesystems without a corresponding fstab entry; traditional Unix has always allowed privileged users the root user and users in the wheel group to mount or unmount devices without a corresponding fstab entry. The following is an example of an fstab file on a typical Linux system. The order of records in fstab is important because fsck 8mount 8and umount 8 sequentially iterate through fstab and mount in the order defined.

Missing values in the last two fields are interpreted as zeros. There are many options for the specific filesystems supported by mount. Listed below are some of the more commonly used. The full list may be found in the documentation for mount. Note that these are for Linux; traditional Unix-like systems have generally provided similar functionality but with slightly different syntax or forms.

More detailed information about the fstab file can be found in the man page for Linux fstab ; for other systems see below.

From Wikipedia, the free encyclopedia. System configuration file. This section contains instructions, advice, or how-to content. The purpose of Wikipedia is to present facts, not to train. Please help improve this article either by rewriting the how-to content or by moving it to WikiversityWikibooks or Wikivoyage.

September This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. Unix command-line interface programs and shell builtins. Categories : Configuration files Unix file system technology. Hidden categories: Articles with short description Short description matches Wikidata Articles needing cleanup from September All pages needing cleanup Articles containing how-to sections Articles needing additional references from March All articles needing additional references.

Namespaces Article Talk. Views Read Edit View history. Help Learn to edit Community portal Recent changes Upload file. Download as PDF Printable version.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *