LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-18-2010, 07:46 AM   #1
Yam-Joyous
LQ Newbie
 
Registered: Aug 2010
Location: Montreal, QC, Canada
Distribution: Fedora (13)
Posts: 9

Rep: Reputation: 0
Syntax Error When Setting Umask


First off, I'm very new to Linux (Fedora13). I'm trying to setup a server environment for testing and learning.

I'm trying to apply a umask to a non shell account. I created an ftp account and the user uploads files to a shared directory and the files are in his name and under the right group, I tried forcing ownership in the vsftpd.conf file to:
chown_uploads=NO
chown_username=ftp-user (uncommented them too)
always shows up as the ftp-user account in the right group, but my other accounts can't touch the files as they are -rw-r--r-- and I need -rwxrwxr-x.

Thus the idea of umask is being pursued. I found this thread and your code above to apply rules to uid and gid but I get syntax errors on shell login indicating something is wrong:

bash: /home/myUserAccount/.bashrc: line 17: syntax error near unexpected token `('
bash: /home/myUserAccount/.bashrc: line 17: `uid=503(ftp-user) gid=501(www-group)'


CAn you help me debug? I tried Googling .bashrc syntax help but it's not clear and it's complicated.

Thanks in advance...
 
Old 08-18-2010, 07:51 AM   #2
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
Yam-Joyous - Log a new post, don't open old ones, especially when they're over 2 years old!!!!!!
 
Old 08-18-2010, 10:22 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
I have moved the post to it's own thread.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting setting umask for apache user only....how?..plz help mickyman Linux - General 0 05-08-2006 04:37 AM
nfs umask setting mvo Linux - Newbie 1 09-16-2005 09:52 PM
setting root's umask triley Linux - Security 3 08-05-2005 08:56 AM
umask setting Cort Linux - Newbie 2 09-28-2004 12:18 PM
umask setting?? TheRealDeal Linux - General 4 01-03-2004 02:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration